diff options
author | Marcel Moolenaar <marcel@FreeBSD.org> | 1999-11-16 11:55:58 +0000 |
---|---|---|
committer | Marcel Moolenaar <marcel@FreeBSD.org> | 1999-11-16 11:55:58 +0000 |
commit | 22afa4faf30d180c5234714e215527994e3f144d (patch) | |
tree | b149ed5ffdfb3749fb55d1fd9ba7c419f56bfdf7 /games | |
parent | 706a690847f14dce093423ace5639f519eb7f18d (diff) | |
download | src-22afa4faf30d180c5234714e215527994e3f144d.tar.gz src-22afa4faf30d180c5234714e215527994e3f144d.zip |
Fix breakage in previous commit.
Notes
Notes:
svn path=/head/; revision=53216
Diffstat (limited to 'games')
-rw-r--r-- | games/rogue/hit.c | 10 | ||||
-rw-r--r-- | games/rogue/message.c | 4 | ||||
-rw-r--r-- | games/rogue/monster.c | 12 | ||||
-rw-r--r-- | games/rogue/move.c | 4 | ||||
-rw-r--r-- | games/rogue/pack.c | 2 | ||||
-rw-r--r-- | games/rogue/room.c | 4 | ||||
-rw-r--r-- | games/rogue/trap.c | 2 |
7 files changed, 19 insertions, 19 deletions
diff --git a/games/rogue/hit.c b/games/rogue/hit.c index bae3c60b4ef1..ee74e6b3858b 100644 --- a/games/rogue/hit.c +++ b/games/rogue/hit.c @@ -180,7 +180,7 @@ get_damage(ds, r) const char *ds; boolean r; { - i = 0, j, n, d, total = 0; + int i = 0, j, n, d, total = 0; while (ds[i]) { n = get_number(ds+i); @@ -206,8 +206,8 @@ get_w_damage(obj) const object *obj; { char new_damage[12]; - to_hit, damage; - i = 0; + int to_hit, damage; + int i = 0; if ((!obj) || (obj->what_is != WEAPON)) { return(-1); @@ -224,8 +224,8 @@ const object *obj; get_number(s) const char *s; { - i = 0; - total = 0; + int i = 0; + int total = 0; while ((s[i] >= '0') && (s[i] <= '9')) { total = (10 * total) + (s[i] - '0'); diff --git a/games/rogue/message.c b/games/rogue/message.c index 732033c5203f..10751c44387e 100644 --- a/games/rogue/message.c +++ b/games/rogue/message.c @@ -192,7 +192,7 @@ boolean do_echo; rgetchar() { - ch; + int ch; for(;;) { ch = getchar(); @@ -222,7 +222,7 @@ Level: 99 Gold: 999999 Hp: 999(999) Str: 99(99) Arm: 99 Exp: 21/10000000 Hungry */ print_stats(stat_mask) -stat_mask; +int stat_mask; { char buf[16]; boolean label; diff --git a/games/rogue/monster.c b/games/rogue/monster.c index 1490e4307cf9..da16eaaa04e0 100644 --- a/games/rogue/monster.c +++ b/games/rogue/monster.c @@ -147,7 +147,7 @@ put_mons() object * gr_monster(monster, mn) object *monster; -mn; +int mn; { if (!monster) { monster = alloc_object(); @@ -267,7 +267,7 @@ int rn, n; } gmc_row_col(row, col) -row, col; +int row, col; { object *monster; @@ -454,7 +454,7 @@ object *monster; short row, col; { short c; - mrow, mcol; + int mrow, mcol; mrow = monster->row; mcol = monster->col; @@ -603,7 +603,7 @@ const object *monster; } rogue_is_around(row, col) -row, col; +int row, col; { short rdif, cdif, retval; @@ -731,9 +731,9 @@ object *monster; } rogue_can_see(row, col) -row, col; +int row, col; { - retval; + int retval; retval = !blind && (((get_room_number(row, col) == cur_room) && diff --git a/games/rogue/move.c b/games/rogue/move.c index 59c92e44a858..b892a0ad1187 100644 --- a/games/rogue/move.c +++ b/games/rogue/move.c @@ -226,7 +226,7 @@ short dirch; } is_passable(row, col) -row, col; +int row, col; { if ((row < MIN_ROW) || (row > (DROWS - 2)) || (col < 0) || (col > (DCOLS-1))) { @@ -239,7 +239,7 @@ row, col; } next_to_something(drow, dcol) -drow, dcol; +int drow, dcol; { short i, j, i_end, j_end, row, col; short pass_count = 0; diff --git a/games/rogue/pack.c b/games/rogue/pack.c index 6946e9689211..9aab305ac464 100644 --- a/games/rogue/pack.c +++ b/games/rogue/pack.c @@ -247,7 +247,7 @@ object *obj, *pack; next_avail_ichar() { object *obj; - i; + int i; boolean ichars[26]; for (i = 0; i < 26; i++) { diff --git a/games/rogue/room.c b/games/rogue/room.c index 6285ec2c93ef..7cc1b1e25473 100644 --- a/games/rogue/room.c +++ b/games/rogue/room.c @@ -175,7 +175,7 @@ short rn; } get_dungeon_char(row, col) -row, col; +int row, col; { unsigned short mask = dungeon[row][col]; @@ -314,7 +314,7 @@ party_objects(rn) } get_room_number(row, col) -row, col; +int row, col; { short i; diff --git a/games/rogue/trap.c b/games/rogue/trap.c index 7467f553d55d..861120d82a16 100644 --- a/games/rogue/trap.c +++ b/games/rogue/trap.c @@ -81,7 +81,7 @@ extern boolean sustain_strength; extern short blind; trap_at(row, col) -row, col; +int row, col; { short i; |