diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 03:37:36 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1995-05-30 03:37:36 +0000 |
commit | 30ef9631c5eac7f8254bd3d7ad274d34d9f518b8 (patch) | |
tree | 4d8ac7e75ac179a918a76def244de6e3f3314e76 /games/rogue | |
parent | 188803394908f222ab3ed8ec32331eb6dd00fd2d (diff) | |
download | FreeBSD-src-30ef9631c5eac7f8254bd3d7ad274d34d9f518b8.zip FreeBSD-src-30ef9631c5eac7f8254bd3d7ad274d34d9f518b8.tar.gz |
Remove trailing whitespace.
Diffstat (limited to 'games/rogue')
-rw-r--r-- | games/rogue/machdep.c | 10 | ||||
-rw-r--r-- | games/rogue/main.c | 2 | ||||
-rw-r--r-- | games/rogue/move.c | 2 | ||||
-rw-r--r-- | games/rogue/pack.c | 2 | ||||
-rw-r--r-- | games/rogue/random.c | 6 | ||||
-rw-r--r-- | games/rogue/use.c | 2 |
6 files changed, 12 insertions, 12 deletions
diff --git a/games/rogue/machdep.c b/games/rogue/machdep.c index d539eaa..87266b1 100644 --- a/games/rogue/machdep.c +++ b/games/rogue/machdep.c @@ -60,7 +60,7 @@ static char sccsid[] = "@(#)machdep.c 8.1 (Berkeley) 5/31/93"; * * All UNIX code should be included between the single "#ifdef UNIX" at the * top of this file, and the "#endif" at the bottom. - * + * * To change a routine to include a new UNIX system, simply #ifdef the * existing routine, as in the following example: * @@ -291,7 +291,7 @@ char *fname; * system doesn't provide all of the time units requested here, then you * can provide only those that it does, and return zeros for the others. * If you cannot provide good time values, then users may be able to copy - * saved-game files and play them. + * saved-game files and play them. */ md_gct(rt_buf) @@ -322,7 +322,7 @@ struct rogue_time *rt_buf; * exactly the same here. * Or if md_gct() is implemented correctly, but your system does not provide * file modification dates, you may return some date far in the past so - * that the program will never know that a saved-game file being modified. + * that the program will never know that a saved-game file being modified. * You may also do this if you wish to be able to restore games from * saved-games that have been modified. */ @@ -481,7 +481,7 @@ int n; * You need to find some single random integer, such as: * process id. * current time (minutes + seconds) returned from md_gct(), if implemented. - * + * * It will not help to return "get_rand()" or "rand()" or the return value of * any pseudo-RNG. If you don't have a random number, you can just return 1, * but this means your games will ALWAYS start the same way, and will play @@ -591,7 +591,7 @@ char *shell; * program is compiled with CURSES defined to use the enclosed curses * emulation package. If you are not using this, then this routine is * totally unnecessary. - * + * * Notice that information is saved between calls. This is used to * restore the terminal to an initial saved state. * diff --git a/games/rogue/main.c b/games/rogue/main.c index 97e492c..2687e34 100644 --- a/games/rogue/main.c +++ b/games/rogue/main.c @@ -77,7 +77,7 @@ char *argv[]; put_mons(); put_player(party_room); print_stats(STAT_ALL); -PL: +PL: play_level(); free_stuff(&level_objects); free_stuff(&level_monsters); diff --git a/games/rogue/move.c b/games/rogue/move.c index d35d5ad..dc05700 100644 --- a/games/rogue/move.c +++ b/games/rogue/move.c @@ -297,7 +297,7 @@ register drow, dcol; return(0); } -can_move(row1, col1, row2, col2) +can_move(row1, col1, row2, col2) { if (!is_passable(row2, col2)) { return(0); diff --git a/games/rogue/pack.c b/games/rogue/pack.c index 7e26b6e..7e9c4fc 100644 --- a/games/rogue/pack.c +++ b/games/rogue/pack.c @@ -221,7 +221,7 @@ object *obj, *pack; op = pack->next_object; while (op) { - if ((op->what_is == obj->what_is) && + if ((op->what_is == obj->what_is) && (op->which_kind == obj->which_kind)) { if ((obj->what_is != WEAPON) || diff --git a/games/rogue/random.c b/games/rogue/random.c index 39eb1dd..a721b16 100644 --- a/games/rogue/random.c +++ b/games/rogue/random.c @@ -51,11 +51,11 @@ static char sccsid[] = "@(#)random.c 8.1 (Berkeley) 5/31/93"; */ static long rntb[32] = { - 3, 0x9a319039, 0x32d9c024, 0x9b663182, 0x5da1f342, + 3, 0x9a319039, 0x32d9c024, 0x9b663182, 0x5da1f342, 0xde3b81e0, 0xdf0a6fb5, 0xf103bc02, 0x48f340fb, 0x7449e56b, 0xbeb1dbb0, 0xab5c5918, 0x946554fd, 0x8c2e680f, 0xeb3d799f, 0xb11ee0b7, 0x2d436b86, 0xda672e2a, 0x1588ca88, 0xe369735d, - 0x904f35f7, 0xd7158fd6, 0x6fa6f051, 0x616e6b96, 0xac94efdc, + 0x904f35f7, 0xd7158fd6, 0x6fa6f051, 0x616e6b96, 0xac94efdc, 0x36413f93, 0xc622c298, 0xf5a42ab8, 0x8a88d77b, 0xf5ad9d0e, 0x8999220b, 0x27fb47b9 }; @@ -91,7 +91,7 @@ long rrandom() { long i; - + if (rand_type == 0) { i = state[0] = (state[0]*1103515245 + 12345) & 0x7fffffff; } else { diff --git a/games/rogue/use.c b/games/rogue/use.c index 2588cff..b340fe2 100644 --- a/games/rogue/use.c +++ b/games/rogue/use.c @@ -587,7 +587,7 @@ get_ench_color() return(id_potions[get_rand(0, POTIONS-1)].title); } else if (con_mon) { return("red "); - } + } return("blue "); } |