From MAILER-DAEMON Wed Jul 14 21:45:59 1999 Date: Wed, 14 Jul 1999 21:45:59 +0930 (CST) From: Mail System Internal Data Subject: DON'T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA X-IMAP: 0931954559 0000000000 Status: RO This text is part of the internal format of your mail folder, and is not a real message. It is created automatically by the mail system software. If deleted, important folder data will be lost, and it will be re-created with the data reset to initial values. From jsno@downunder.net.au Wed Jul 14 21:03:08 1999 +0930 Status: R X-Status: A X-Keywords: Return-Path: Received: from localhost (ns.localhost [127.0.0.1]) by berkeley.cluster (8.8.7/8.8.7) with ESMTP id VAA00463 for ; Wed, 14 Jul 1999 21:03:04 +0930 Received: from downunder.net.au by fetchmail-4.5.8 POP3 for (single-drop); Wed, 14 Jul 1999 21:03:08 CST Received: from adminpg.inpg.fr (adminpg.inpg.fr [195.83.76.59]) by manor.downunder.net.au (8.9.3/8.9.3) with ESMTP id EAA13398 for ; Tue, 13 Jul 1999 04:50:12 +0930 Received: from cristal.icp.inpg.fr (cristal.icp.inpg.fr [195.83.80.1]) by adminpg.inpg.fr (8.9.1/8.9.1) with ESMTP id VAA17397 for ; Mon, 12 Jul 1999 21:19:54 +0200 (MET DST) Received: from gallium.icp.inpg.fr (root@gallium.icp.inpg.fr [195.83.80.71]) by cristal.icp.inpg.fr (8.9.1a/8.9.1) with ESMTP id VAA05840; Mon, 12 Jul 1999 21:20:08 +0200 (METDST) Received: by icp.inpg.fr via sendmail from stdin id (Debian Smail3.2.0.102) for jsno@downunder.net.au; Mon, 12 Jul 1999 21:20:07 +0200 (CEST) To: Jason Nunn Subject: Cascade transferring in Nighthawk (patch) Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Face: ;7hGWtA?]9@+=sfhIuP+0MRF%{=?}1[U}=O-G$V>LF2Ah_)P)P4.jS?o`@UNjw]`>}bQq|@ m`ve^K.~olo\(jH)VRU=_\r/]%7=Mo3]+A-=GnHS|(d85.OO37*pl2SY(>E}Mz%9bCl2k0Rz:{v[z3 ww1Dm:?`4&GFn-%sp??}!1yQQcC).wr!,r|[X%YNHfqQOkW5v~%YY'G@H-d'aNzJ|kL?e*hr0xT`-( /=G]Y*H5[O#=z?L$?3K2<@R]|'`,z^LnD=w&Eb[1&}}SS\!=(w*y!**XBkORX^tFD8ISXiZ From: Rafael Laboissiere Date: 12 Jul 1999 21:20:06 +0200 Message-ID: Lines: 91 X-Mailer: Gnus v5.5/XEmacs 20.4 - "Emerald" Content-Transfer-Encoding: 8bit Hi, I just tried the version 2.2 of Nighthawk and found the additions in respect to version 1.0 just great (specially the sound support). A while ago I have hacked the source of version 1.0 to introduce a new action related to transferring. Sometimes, when in a floor without attackers, I wanted to do transfers in cascade, i.e. without having to press on 't' after each transfer. I added a new action KEY_CASCADE_MODE that allow this. The patch for version 2.2 is attached below. I never bothered sending it before because I thought that the development of Nighthawk had stopped. Of course I saw the message in your website: "this distribution has matured. again, please don't send any more requests for change", but the patch is so minimal (and it works) that you might be interested anyway. I am not sure though whether I implemented my idea in the best way or not. [ N.B.: there is no "break;" statement in "case KEY_CASCADE_MODE:". It is intentional. ] All the best, -- Rafael Laboissiere Institut de la Communication Parlee / INP Grenoble, France http://www.icp.inpg.fr/~rafael --[[application/octet-stream; type=patch Content-Disposition: attachment; filename="nighthawk-2.2-cascade.patch"][binary]] diff -r -u nighthawk/options.h nighthawk-new/options.h --- nighthawk/options.h Sat May 15 15:28:11 1999 +++ nighthawk-new/options.h Mon Jul 12 20:31:25 1999 @@ -11,6 +11,7 @@ /* Keys can be a letter, or XK_Up, XK_Down, XK_Left, XK_Right for arrows */ #define KEY_SELECT ' ' #define KEY_TRANSFER_MODE 't' +#define KEY_CASCADE_MODE 'c' #define KEY_HEADSUP 'h' #define KEY_STATUS 's' #define KEY_PAUSE 'p' diff -r -u nighthawk/src/object.cc nighthawk-new/src/object.cc --- nighthawk/src/object.cc Sat May 8 10:28:02 1999 +++ nighthawk-new/src/object.cc Mon Jul 12 20:32:40 1999 @@ -811,6 +811,7 @@ memcpy(&stats,&droid_stats[DROID_002],sizeof(tdroid_stats)); transferring = 0; + cascade = 0; flr_move = 0; for(x = 0;x < MAX_MESSAGES;x++) *(message + x) = NULL; @@ -971,7 +972,8 @@ captured_droid = NULL; do_sound(FX_EXPLOSION_1,40); do_sound(FX_POWER_UP,40); - transferring = 0; + if (!cascade) + transferring = 0; add_message("Transferred!!"); tdroid::display_nd(); } @@ -1090,6 +1092,8 @@ display_nd(); sound_engine_cmd(SND_CMD_FX,FX_SELECT,0xff,0x80); break; + case KEY_CASCADE_MODE: + cascade = 1; case KEY_TRANSFER_MODE: if(captured_droid == NULL) { @@ -1101,6 +1105,7 @@ } else { + cascade = 0; add_message("Transfer off"); sound_engine_cmd(SND_CMD_FX,FX_WEAPON_RELOAD,0xff,0x80); } diff -r -u nighthawk/src/tparadroid.h nighthawk-new/src/tparadroid.h --- nighthawk/src/tparadroid.h Fri May 7 14:05:09 1999 +++ nighthawk-new/src/tparadroid.h Mon Jul 12 20:34:07 1999 @@ -8,7 +8,7 @@ class tparadroid : public tdroid { public: - int transferring,flr_move,button_down,tug1,tug2,low_shields_trig; + int transferring,cascade,flr_move,button_down,tug1,tug2,low_shields_trig; char *message[MAX_MESSAGES]; tdroid *captured_droid;