diff options
author | rillig <rillig@NetBSD.org> | 2021-05-02 12:50:43 +0000 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-05-05 14:56:21 -0400 |
commit | 1c75ca2e2dc72d118edbb854455e602d70d80a52 (patch) | |
tree | a815eb983fa15e7c407095122e37acb90093be9a /warp | |
parent | 2442661e769456700d67fac92056d18b3046633e (diff) | |
download | bsdgames-darwin-1c75ca2e2dc72d118edbb854455e602d70d80a52.tar.gz bsdgames-darwin-1c75ca2e2dc72d118edbb854455e602d70d80a52.tar.zst bsdgames-darwin-1c75ca2e2dc72d118edbb854455e602d70d80a52.zip |
games: remove trailing whitespace in *.c and *.h
Diffstat (limited to 'warp')
-rw-r--r-- | warp/EXTERN.h | 4 | ||||
-rw-r--r-- | warp/INTERN.h | 4 | ||||
-rw-r--r-- | warp/bang.c | 8 | ||||
-rw-r--r-- | warp/bang.h | 2 | ||||
-rw-r--r-- | warp/init.c | 12 | ||||
-rw-r--r-- | warp/init.h | 2 | ||||
-rw-r--r-- | warp/intrp.c | 16 | ||||
-rw-r--r-- | warp/intrp.h | 4 | ||||
-rw-r--r-- | warp/move.c | 6 | ||||
-rw-r--r-- | warp/move.h | 2 | ||||
-rw-r--r-- | warp/object.c | 2 | ||||
-rw-r--r-- | warp/object.h | 6 | ||||
-rw-r--r-- | warp/play.c | 4 | ||||
-rw-r--r-- | warp/play.h | 2 | ||||
-rw-r--r-- | warp/score.c | 12 | ||||
-rw-r--r-- | warp/score.h | 2 | ||||
-rw-r--r-- | warp/sig.c | 6 | ||||
-rw-r--r-- | warp/sig.h | 2 | ||||
-rw-r--r-- | warp/sm.c | 8 | ||||
-rw-r--r-- | warp/term.c | 14 | ||||
-rw-r--r-- | warp/term.h | 8 | ||||
-rw-r--r-- | warp/them.c | 12 | ||||
-rw-r--r-- | warp/them.h | 2 | ||||
-rw-r--r-- | warp/us.c | 14 | ||||
-rw-r--r-- | warp/us.h | 4 | ||||
-rw-r--r-- | warp/util.c | 12 | ||||
-rw-r--r-- | warp/version.c | 2 | ||||
-rw-r--r-- | warp/version.h | 2 | ||||
-rw-r--r-- | warp/warp.c | 38 | ||||
-rw-r--r-- | warp/warp.h | 10 | ||||
-rw-r--r-- | warp/weapon.c | 10 | ||||
-rw-r--r-- | warp/weapon.h | 2 |
32 files changed, 117 insertions, 117 deletions
diff --git a/warp/EXTERN.h b/warp/EXTERN.h index 38dcdac5..34819afd 100644 --- a/warp/EXTERN.h +++ b/warp/EXTERN.h @@ -3,10 +3,10 @@ * Log: EXTERN.h,v * Revision 7.0.1.1 86/12/12 16:46:50 lwall * Guarded the undefs. - * + * * Revision 7.0 86/10/08 15:11:31 lwall * Split into separate files. Added amoebas and pirates. - * + * */ #ifdef EXT diff --git a/warp/INTERN.h b/warp/INTERN.h index e924b89f..446d1f73 100644 --- a/warp/INTERN.h +++ b/warp/INTERN.h @@ -3,10 +3,10 @@ * Log: INTERN.h,v * Revision 7.0.1.1 86/12/12 16:51:45 lwall * Guarded the undefs. - * + * * Revision 7.0 86/10/08 15:11:37 lwall * Split into separate files. Added amoebas and pirates. - * + * */ #ifdef EXT diff --git a/warp/bang.c b/warp/bang.c index 39da8285..76e46751 100644 --- a/warp/bang.c +++ b/warp/bang.c @@ -3,16 +3,16 @@ /* Log: bang.c,v * Revision 7.0.1.3 86/12/12 16:57:00 lwall * Made circular explosions. - * + * * Revision 7.0.1.2 86/10/20 14:36:02 lwall * Picked some lint. - * + * * Revision 7.0.1.1 86/10/16 10:49:45 lwall * Added Damage. Fixed random bugs. - * + * * Revision 7.0 86/10/08 15:11:57 lwall * Split into separate files. Added amoebas and pirates. - * + * */ #include "EXTERN.h" diff --git a/warp/bang.h b/warp/bang.h index aa41defc..9d411268 100644 --- a/warp/bang.h +++ b/warp/bang.h @@ -3,7 +3,7 @@ /* Log: bang.h,v * Revision 7.0 86/10/08 15:12:03 lwall * Split into separate files. Added amoebas and pirates. - * + * */ EXT long blast[YSIZE][XSIZE]; diff --git a/warp/init.c b/warp/init.c index a11a499c..68b195e9 100644 --- a/warp/init.c +++ b/warp/init.c @@ -3,19 +3,19 @@ /* Log: init.c,v * Revision 7.0.1.4 86/12/12 16:58:03 lwall * Baseline for net release. - * + * * Revision 7.0.1.3 86/10/20 14:35:31 lwall * Picked some lint. - * + * * Revision 7.0.1.2 86/10/17 15:53:30 lwall * Added random walk star fields. - * + * * Revision 7.0.1.1 86/10/16 10:51:19 lwall * Added Damage. Fixed random bugs. - * + * * Revision 7.0 86/10/08 15:12:10 lwall * Split into separate files. Added amoebas and pirates. - * + * */ #include "EXTERN.h" @@ -519,7 +519,7 @@ stars_again: } } - for (i=0;i<2;i++) for (y=0;y<3;y++) for (x=0;x<3;x++) + for (i=0;i<2;i++) for (y=0;y<3;y++) for (x=0;x<3;x++) isatorp[i][y][x]=0; whenok = 0; diff --git a/warp/init.h b/warp/init.h index 5e17bc99..a07ddbfb 100644 --- a/warp/init.h +++ b/warp/init.h @@ -3,7 +3,7 @@ /* Log: init.h,v * Revision 7.0 86/10/08 15:12:17 lwall * Split into separate files. Added amoebas and pirates. - * + * */ void initialize(void); diff --git a/warp/intrp.c b/warp/intrp.c index 1a88da3d..1c91c5ec 100644 --- a/warp/intrp.c +++ b/warp/intrp.c @@ -2,13 +2,13 @@ * * Revision 7.0.1.2 86/12/12 16:59:04 lwall * Baseline for net release. - * + * * Revision 7.0.1.1 86/10/16 10:51:43 lwall * Added Damage. Fixed random bugs. - * + * * Revision 7.0 86/10/08 15:12:19 lwall * Split into separate files. Added amoebas and pirates. - * + * */ #include "EXTERN.h" @@ -58,7 +58,7 @@ intrp_init(char *tcbuf) if (logname == NULL) logname = savestr(getlogin()); #endif - + /* get the real name of the person (%N) */ /* Must be done after logname is read in because BERKNAMES uses that */ @@ -306,7 +306,7 @@ dointerp(char *dest, size_t destsize, const char *pattern, const char *stoppers) case '(': { char rch; bool matched; - + pattern = dointerp(dest,destsize,pattern+1,"!="); rch = *pattern; if (rch == '!') @@ -472,9 +472,9 @@ dointerp(char *dest, size_t destsize, const char *pattern, const char *stoppers) else if (*pattern == '\\' && pattern[1]) { ++pattern; /* skip backslash */ i = *pattern; /* get char into a register */ - + /* this used to be a switch but the if may save space */ - + if (i >= '0' && i <= '7') { i = 1; while (i < 01000 && *pattern >= '0' && *pattern <= '7') { @@ -527,7 +527,7 @@ getrealname(uid_t uid) #ifdef PASSNAMES struct passwd *pwd = getpwuid(uid); - + s = pwd->pw_gecos; #ifdef BERKNAMES #ifdef BERKJUNK diff --git a/warp/intrp.h b/warp/intrp.h index b6bfc627..524f7243 100644 --- a/warp/intrp.h +++ b/warp/intrp.h @@ -3,10 +3,10 @@ * Log: intrp.h,v * Revision 7.0.1.1 86/12/12 16:59:45 lwall * Baseline for net release. - * + * * Revision 7.0 86/10/08 15:12:27 lwall * Split into separate files. Added amoebas and pirates. - * + * */ EXT char *origdir INIT(NULL); /* cwd when warp invoked */ diff --git a/warp/move.c b/warp/move.c index 363ad00a..ecb36f54 100644 --- a/warp/move.c +++ b/warp/move.c @@ -3,13 +3,13 @@ /* Log: move.c,v * Revision 7.0.1.2 86/10/20 14:37:06 lwall * Picked some lint. - * + * * Revision 7.0.1.1 86/10/16 10:52:09 lwall * Added Damage. Fixed random bugs. - * + * * Revision 7.0 86/10/08 15:12:40 lwall * Split into separate files. Added amoebas and pirates. - * + * */ #include "EXTERN.h" diff --git a/warp/move.h b/warp/move.h index 6f6b86cd..6fdeb1da 100644 --- a/warp/move.h +++ b/warp/move.h @@ -3,7 +3,7 @@ /* Log: move.h,v * Revision 7.0 86/10/08 15:12:46 lwall * Split into separate files. Added amoebas and pirates. - * + * */ void move_init(void); diff --git a/warp/object.c b/warp/object.c index 2f280118..a6b9f6a7 100644 --- a/warp/object.c +++ b/warp/object.c @@ -3,7 +3,7 @@ /* Log: object.c,v * Revision 7.0 86/10/08 15:12:55 lwall * Split into separate files. Added amoebas and pirates. - * + * */ #include "EXTERN.h" diff --git a/warp/object.h b/warp/object.h index 5091a04f..5c3c801f 100644 --- a/warp/object.h +++ b/warp/object.h @@ -3,13 +3,13 @@ /* Log: object.h,v * Revision 7.0.1.2 86/12/12 17:01:38 lwall * Baseline for net release. - * + * * Revision 7.0.1.1 86/10/16 10:52:30 lwall * Added Damage. Fixed random bugs. - * + * * Revision 7.0 86/10/08 15:13:04 lwall * Split into separate files. Added amoebas and pirates. - * + * */ #define Root 0 diff --git a/warp/play.c b/warp/play.c index 83452aea..8775aca7 100644 --- a/warp/play.c +++ b/warp/play.c @@ -3,10 +3,10 @@ /* Log: play.c,v * Revision 7.0.1.1 86/10/16 10:52:39 lwall * Added Damage. Fixed random bugs. - * + * * Revision 7.0 86/10/08 15:13:09 lwall * Split into separate files. Added amoebas and pirates. - * + * */ #include "EXTERN.h" diff --git a/warp/play.h b/warp/play.h index d6b06a18..27a7b0ba 100644 --- a/warp/play.h +++ b/warp/play.h @@ -3,7 +3,7 @@ /* Log: play.h,v * Revision 7.0 86/10/08 15:13:12 lwall * Split into separate files. Added amoebas and pirates. - * + * */ EXT int finish INIT(0); diff --git a/warp/score.c b/warp/score.c index 8e9991d6..7749992f 100644 --- a/warp/score.c +++ b/warp/score.c @@ -3,16 +3,16 @@ /* Log: score.c,v * Revision 7.0.1.2a 87/07/03 02:13:26 games * Fixed numerous long vs. int bugs in printfs, etc. - * + * * Revision 7.0.1.2 86/10/20 12:06:56 lwall * Made all exits reset tty. - * + * * Revision 7.0.1.1 86/10/16 10:52:47 lwall * Added Damage. Fixed random bugs. - * + * * Revision 7.0 86/10/08 15:13:14 lwall * Split into separate files. Added amoebas and pirates. - * + * */ #include "EXTERN.h" @@ -47,7 +47,7 @@ score_init(void) printf("%s is not protected correctly (must be u+rw o+rx).\r\n",SAVEDIR); finalize(1); } - + #ifdef SCOREFULL interp(longlognam, sizeof longlognam, "%N"); for (i=strlen(longlognam); i<24; i++) @@ -59,7 +59,7 @@ score_init(void) longlognam[i] = ' '; /* make sure it is 8 long for strncmp */ longlognam[8] = '\0'; #endif - + if (scorespec) wscore(); diff --git a/warp/score.h b/warp/score.h index a47521f0..97da0453 100644 --- a/warp/score.h +++ b/warp/score.h @@ -3,7 +3,7 @@ /* Log: score.h,v * Revision 7.0 86/10/08 15:13:21 lwall * Split into separate files. Added amoebas and pirates. - * + * */ #define ENTBOUNDARY 100000 /* point boundary across which a new E is @@ -4,13 +4,13 @@ * Revision 7.0.1.1a 87/07/03 01:47:11 games * Changed sigsetmask to use sigmask instead of calculating it (incorrectly) * by hand. - * + * * Revision 7.0.1.1 86/12/12 17:02:44 lwall * Baseline for net release. - * + * * Revision 7.0 86/10/08 15:13:24 lwall * Split into separate files. Added amoebas and pirates. - * + * */ #include "EXTERN.h" @@ -3,7 +3,7 @@ /* Log: sig.h,v * Revision 7.0 86/10/08 15:13:32 lwall * Split into separate files. Added amoebas and pirates. - * + * */ void sig_init(void); @@ -3,7 +3,7 @@ /* Log: sm.c,v * Revision 7.0 86/10/08 15:13:35 lwall * Split into separate files. Added amoebas and pirates. - * + * */ #include <stdio.h> @@ -22,7 +22,7 @@ main(void) for (x=0; x<79; x++) screen[0][x] = ' '; screen[0][79] = '\0'; - + fgets(screen[0],90,stdin); if (isdigit(screen[0][0])) { int numstars = atoi(screen[0]); @@ -32,7 +32,7 @@ main(void) screen[y][x] = ' '; screen[y][79] = '\0'; } - + for ( ; numstars; numstars--) { scanf("%d %d\n",&tmpy,&tmpx); y = tmpy; @@ -52,7 +52,7 @@ main(void) screen[y][x] = ' '; screen[y][79] = '\0'; } - + for (y=1; y<23; y++) { fgets(screen[y],90,stdin); } diff --git a/warp/term.c b/warp/term.c index 21b3b12c..5741f96e 100644 --- a/warp/term.c +++ b/warp/term.c @@ -3,13 +3,13 @@ /* Log: term.c,v * Revision 7.0.1.2 86/12/12 17:04:09 lwall * Baseline for net release. - * + * * Revision 7.0.1.1 86/10/16 10:53:20 lwall * Added Damage. Fixed random bugs. - * + * * Revision 7.0 86/10/08 15:14:02 lwall * Split into separate files. Added amoebas and pirates. - * + * */ #include "EXTERN.h" @@ -133,7 +133,7 @@ term_set(char *tcbuf) /* temp area for "uncompiled" termcap entry */ #endif #endif #endif - + /* get all that good termcap stuff */ retval = tgetent(tcbuf,getenv("TERM")); /* get termcap entry */ @@ -507,7 +507,7 @@ helper(void) getcmd(spbuf); } while (*spbuf != ' '); rewrite(); - + } void @@ -704,7 +704,7 @@ getcmd(char *wbuf) #ifdef PUSHBACK KEYMAP *curmap; int i; - bool no_macros; + bool no_macros; int times = 0; /* loop detector */ char scrchar; unsigned char *whatbuf = (void *)wbuf; @@ -786,7 +786,7 @@ pushstring(char *str) assert(str != NULL); interp(s,PUSHSIZE,str); for (i = strlen(s)-1; i >= 0; --i) { - s[i] ^= 0200; + s[i] ^= 0200; pushchar(s[i]); } } diff --git a/warp/term.h b/warp/term.h index 3798a24c..362f6aeb 100644 --- a/warp/term.h +++ b/warp/term.h @@ -3,13 +3,13 @@ /* Log: term.h,v * Revision 7.0.1.2 86/12/12 17:05:15 lwall * Baseline for net release. - * + * * Revision 7.0.1.1 86/10/16 10:53:33 lwall * Added Damage. Fixed random bugs. - * + * * Revision 7.0 86/10/08 15:14:07 lwall * Split into separate files. Added amoebas and pirates. - * + * */ #ifndef TERM_H @@ -201,7 +201,7 @@ EXT bool bizarre INIT(false); /* do we need to restore terminal? */ /* terminal mode diddling routines */ #if defined(TERMIO) || defined(TERMIOS) - + #define raw() ((bizarre=1),_tty.c_lflag &=~ISIG,_tty.c_cc[VMIN] = 1,tcsetattr(_tty_ch,TCSAFLUSH,&_tty)) #define noraw() ((bizarre=1),_tty.c_lflag |= ISIG,_tty.c_cc[VEOF] = CEOF,tcsetattr(_tty_ch,TCSAFLUSH,&_tty)) #define crmode() ((bizarre=1),_tty.c_lflag &=~ICANON,_tty.c_cc[VMIN] = 1,tcsetattr(_tty_ch,TCSAFLUSH,&_tty)) diff --git a/warp/them.c b/warp/them.c index 085e92fb..85ca939d 100644 --- a/warp/them.c +++ b/warp/them.c @@ -3,22 +3,22 @@ /* Log: them.c,v * Revision 7.0.1.5 86/12/12 17:05:41 lwall * Baseline for net release. - * + * * Revision 7.0.1.4 86/10/20 12:32:38 lwall * Wasn't clearing FRIENDLY flag on pirate creation. - * + * * Revision 7.0.1.3 86/10/20 12:15:33 lwall * Was trying to create pirates from cloaked pirates. - * + * * Revision 7.0.1.2 86/10/17 10:03:44 lwall * Fixed Romulan writing spaces while cloaked. - * + * * Revision 7.0.1.1 86/10/16 10:53:39 lwall * Added Damage. Fixed random bugs. - * + * * Revision 7.0 86/10/08 15:14:15 lwall * Split into separate files. Added amoebas and pirates. - * + * */ #include "EXTERN.h" diff --git a/warp/them.h b/warp/them.h index ba541626..ab527e8a 100644 --- a/warp/them.h +++ b/warp/them.h @@ -3,7 +3,7 @@ /* Log: them.h,v * Revision 7.0 86/10/08 15:14:19 lwall * Split into separate files. Added amoebas and pirates. - * + * */ void them_init(void); @@ -3,16 +3,16 @@ /* Log: us.c,v * Revision 7.0.1.3 87/01/13 17:13:21 lwall * Partially fixed ^S behavior. It now just ignores ^S. - * + * * Revision 7.0.1.2 86/12/12 17:06:09 lwall * Baseline for net release. - * + * * Revision 7.0.1.1 86/10/16 10:53:50 lwall * Added Damage. Fixed random bugs. - * + * * Revision 7.0 86/10/08 15:14:21 lwall * Split into separate files. Added amoebas and pirates. - * + * */ #include "EXTERN.h" @@ -42,7 +42,7 @@ do_direction(int dy, int dx) if (status < 2) { if (cloaking) { char ch; - + cloaked = false; ch = (ent->energy >= 500?'E':'e'); if (ch != ent->image) { @@ -111,7 +111,7 @@ ctrl_direction(int dy, int dx) if (status < 2) { if (cloaking) { char ch; - + cloaked = false; ch = (ent->energy >= 500?'E':'e'); if (ch != ent->image) { @@ -136,7 +136,7 @@ shift_direction(int dy, int dx) if (status < 2) { if (cloaking) { char ch; - + cloaked = false; ch = (ent->energy >= 500?'E':'e'); if (ch != ent->image) { @@ -3,10 +3,10 @@ /* Log: us.h,v * Revision 7.0.1.1 86/10/16 10:53:58 lwall * Added Damage. Fixed random bugs. - * + * * Revision 7.0 86/10/08 15:14:27 lwall * Split into separate files. Added amoebas and pirates. - * + * */ EXT bool cloaking; diff --git a/warp/util.c b/warp/util.c index 2b5a638f..a5071d10 100644 --- a/warp/util.c +++ b/warp/util.c @@ -3,13 +3,13 @@ /* Log: util.c,v * Revision 7.0.1.2 86/10/20 12:07:46 lwall * Made all exits reset tty. - * + * * Revision 7.0.1.1 86/10/16 10:54:02 lwall * Added Damage. Fixed random bugs. - * + * * Revision 7.0 86/10/08 15:14:31 lwall * Split into separate files. Added amoebas and pirates. - * + * */ #include "EXTERN.h" @@ -102,8 +102,8 @@ safecpy(char *to, const char *from, size_t len) { char *dest = to; - if (from != NULL) - for (len--; len && (*dest++ = *from++); len--) + if (from != NULL) + for (len--; len && (*dest++ = *from++); len--) continue; *dest = '\0'; return to; @@ -156,7 +156,7 @@ eaccess(const char *filename, mode_t mod) { mode_t protection; uid_t euid; - + mod &= 7; /* remove extraneous garbage */ if (stat(filename, &filestat) < 0) return -1; diff --git a/warp/version.c b/warp/version.c index db6faf5c..4315fee5 100644 --- a/warp/version.c +++ b/warp/version.c @@ -3,7 +3,7 @@ * Log: version.c,v * Revision 7.0 86/10/08 15:14:39 lwall * Split into separate files. Added amoebas and pirates. - * + * */ #include "patchlevel.h" diff --git a/warp/version.h b/warp/version.h index bb16c5b7..52546caa 100644 --- a/warp/version.h +++ b/warp/version.h @@ -3,7 +3,7 @@ * Log: version.h,v * Revision 7.0 86/10/08 15:14:43 lwall * Split into separate files. Added amoebas and pirates. - * + * */ void version(void); diff --git a/warp/warp.c b/warp/warp.c index 5f0c045f..b8a14596 100644 --- a/warp/warp.c +++ b/warp/warp.c @@ -7,10 +7,10 @@ char rcsid[] = "@(#)Header: warp.c,v 7.0.1.3 86/12/12 17:07:44 lwall Exp"; * * Copyright (c) 2020 The NetBSD Foundation, Inc. * All rights reserved. - * + * * This code is derived from software contributed to The NetBSD Foundation * by Larry Wall. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -19,7 +19,7 @@ char rcsid[] = "@(#)Header: warp.c,v 7.0.1.3 86/12/12 17:07:44 lwall Exp"; * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * + * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR @@ -31,7 +31,7 @@ char rcsid[] = "@(#)Header: warp.c,v 7.0.1.3 86/12/12 17:07:44 lwall Exp"; * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. - * + * * version 5.0 04/20/83 * 5.1 05/05/83 various tidbits * 5.2 05/12/83 VAX -> vax, ifdef'ed a SIGCONT @@ -40,28 +40,28 @@ char rcsid[] = "@(#)Header: warp.c,v 7.0.1.3 86/12/12 17:07:44 lwall Exp"; * Log: warp.c,v * Revision 7.0.1.3 86/12/12 17:07:44 lwall * Baseline for net release. - * + * * Revision 7.0.1.2 86/10/20 12:08:00 lwall * Made all exits reset tty. - * + * * Revision 7.0.1.1 86/10/16 10:54:13 lwall * Added Damage. Fixed random bugs. - * + * * Revision 7.0 86/10/08 15:14:47 lwall * Split into separate files. Added amoebas and pirates. - * + * * Revision 6.4 83/12/16 13:11:45 lwall * Handled 15 bit random number generators. - * + * * Fixed array overflow bug on multiple zaps. - * + * * Multiple zaps now consolidated to minimize output. - * + * * Tholian jackpot games outlawed under difficulty 15. - * + * * Revision 6.3 83/08/24 11:17:49 lwall * Fixed array overflow bug on multiple zap. - * + * * Revision 6.2 83/08/23 18:06:37 lwall * Added zap command. * Warp -s should now work on dumb terminals @@ -70,14 +70,14 @@ char rcsid[] = "@(#)Header: warp.c,v 7.0.1.3 86/12/12 17:07:44 lwall Exp"; * No-delay read provided as alternative to FIONREAD. * Warp won't report "-1 obsolete" when there are no Enterprises left. * Some high-difficulty tuning. - * + * * Revision 6.1 83/08/17 08:49:03 lwall * Fixed obscure bug in storing UP that caused a %. in CM to occasionally * foist garbage onto the screen. - * + * * Revision 6.0 83/08/08 17:09:26 lwall * New baseline version for net release. - * + * * Revision 5.5 83/08/01 10:59:56 lwall * Cloaking for the Enterprise. * Difficulty now goes to 99, and many activities depending on difficulty @@ -115,7 +115,7 @@ char rcsid[] = "@(#)Header: warp.c,v 7.0.1.3 86/12/12 17:07:44 lwall Exp"; * Catch ^D on fgets. * Version number printer. * Less signal catching during debugging. - * + * * Revision 5.4 83/06/24 09:28:38 lwall * 16 bit random number generators are now supported. * Made warp not blow up on a null save file. @@ -124,10 +124,10 @@ char rcsid[] = "@(#)Header: warp.c,v 7.0.1.3 86/12/12 17:07:44 lwall Exp"; * was launched because of an obstacle. * Put %<n>ld formats where appropriate. * Fixed E: 0 0 bug on refresh. - * + * * Revision 5.3 83/05/24 14:03:10 lwall * Starting RCS - * + * */ #include "INTERN.h" diff --git a/warp/warp.h b/warp/warp.h index 4dabe7be..5739d7a6 100644 --- a/warp/warp.h +++ b/warp/warp.h @@ -3,13 +3,13 @@ /* Log: warp.h,v * Revision 7.0.1.2 86/12/12 17:08:42 lwall * Baseline for net release. - * + * * Revision 7.0.1.1 86/10/16 10:54:26 lwall * Added Damage. Fixed random bugs. - * + * * Revision 7.0 86/10/08 15:17:55 lwall * Split into separate files. Added amoebas and pirates. - * + * */ #ifndef WARP_H @@ -29,7 +29,7 @@ #include <signal.h> #include <fcntl.h> #include <ctype.h> -#include <errno.h> +#include <errno.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> @@ -315,7 +315,7 @@ EXT char *cwd INIT(NULL); /* current working directory */ #ifdef DEBUGGING EXT int debug INIT(0); /* -D */ -# define DEB_FILEXP 64 +# define DEB_FILEXP 64 #endif #ifdef VERBOSE diff --git a/warp/weapon.c b/warp/weapon.c index 0cf51f32..33134ca3 100644 --- a/warp/weapon.c +++ b/warp/weapon.c @@ -3,13 +3,13 @@ /* Log: weapon.c,v * Revision 7.0.1.2 86/10/20 14:36:33 lwall * Picked some lint. - * + * * Revision 7.0.1.1 86/10/16 10:54:42 lwall * Added Damage. Fixed random bugs. - * + * * Revision 7.0 86/10/08 15:18:08 lwall * Split into separate files. Added amoebas and pirates. - * + * */ #include "EXTERN.h" @@ -162,7 +162,7 @@ attack(OBJECT *attackee) case 3: { int newspeed = rand_mod(prob<5&&smarts>70?4:3)-1; - + obj->vely = -dy * newspeed; obj->velx = -dx * newspeed; if (newspeed >= 0 && @@ -418,7 +418,7 @@ attack(OBJECT *attackee) else { if (thru_stars) goto bombout; - } + } } bombout: ; /* end of loop */ } diff --git a/warp/weapon.h b/warp/weapon.h index fbfcecf0..dbe129ce 100644 --- a/warp/weapon.h +++ b/warp/weapon.h @@ -3,7 +3,7 @@ /* Log: weapon.h,v * Revision 7.0 86/10/08 15:18:20 lwall * Split into separate files. Added amoebas and pirates. - * + * */ EXT int tractor INIT(0); |