Fix breakage in previous commit.

This commit is contained in:
Marcel Moolenaar 1999-11-16 11:55:58 +00:00
parent 706a690847
commit 22afa4faf3
7 changed files with 19 additions and 19 deletions

View File

@ -180,7 +180,7 @@ get_damage(ds, r)
const char *ds; const char *ds;
boolean r; boolean r;
{ {
i = 0, j, n, d, total = 0; int i = 0, j, n, d, total = 0;
while (ds[i]) { while (ds[i]) {
n = get_number(ds+i); n = get_number(ds+i);
@ -206,8 +206,8 @@ get_w_damage(obj)
const object *obj; const object *obj;
{ {
char new_damage[12]; char new_damage[12];
to_hit, damage; int to_hit, damage;
i = 0; int i = 0;
if ((!obj) || (obj->what_is != WEAPON)) { if ((!obj) || (obj->what_is != WEAPON)) {
return(-1); return(-1);
@ -224,8 +224,8 @@ const object *obj;
get_number(s) get_number(s)
const char *s; const char *s;
{ {
i = 0; int i = 0;
total = 0; int total = 0;
while ((s[i] >= '0') && (s[i] <= '9')) { while ((s[i] >= '0') && (s[i] <= '9')) {
total = (10 * total) + (s[i] - '0'); total = (10 * total) + (s[i] - '0');

View File

@ -192,7 +192,7 @@ boolean do_echo;
rgetchar() rgetchar()
{ {
ch; int ch;
for(;;) { for(;;) {
ch = getchar(); 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) print_stats(stat_mask)
stat_mask; int stat_mask;
{ {
char buf[16]; char buf[16];
boolean label; boolean label;

View File

@ -147,7 +147,7 @@ put_mons()
object * object *
gr_monster(monster, mn) gr_monster(monster, mn)
object *monster; object *monster;
mn; int mn;
{ {
if (!monster) { if (!monster) {
monster = alloc_object(); monster = alloc_object();
@ -267,7 +267,7 @@ int rn, n;
} }
gmc_row_col(row, col) gmc_row_col(row, col)
row, col; int row, col;
{ {
object *monster; object *monster;
@ -454,7 +454,7 @@ object *monster;
short row, col; short row, col;
{ {
short c; short c;
mrow, mcol; int mrow, mcol;
mrow = monster->row; mrow = monster->row;
mcol = monster->col; mcol = monster->col;
@ -603,7 +603,7 @@ const object *monster;
} }
rogue_is_around(row, col) rogue_is_around(row, col)
row, col; int row, col;
{ {
short rdif, cdif, retval; short rdif, cdif, retval;
@ -731,9 +731,9 @@ object *monster;
} }
rogue_can_see(row, col) rogue_can_see(row, col)
row, col; int row, col;
{ {
retval; int retval;
retval = !blind && retval = !blind &&
(((get_room_number(row, col) == cur_room) && (((get_room_number(row, col) == cur_room) &&

View File

@ -226,7 +226,7 @@ short dirch;
} }
is_passable(row, col) is_passable(row, col)
row, col; int row, col;
{ {
if ((row < MIN_ROW) || (row > (DROWS - 2)) || (col < 0) || if ((row < MIN_ROW) || (row > (DROWS - 2)) || (col < 0) ||
(col > (DCOLS-1))) { (col > (DCOLS-1))) {
@ -239,7 +239,7 @@ row, col;
} }
next_to_something(drow, dcol) next_to_something(drow, dcol)
drow, dcol; int drow, dcol;
{ {
short i, j, i_end, j_end, row, col; short i, j, i_end, j_end, row, col;
short pass_count = 0; short pass_count = 0;

View File

@ -247,7 +247,7 @@ object *obj, *pack;
next_avail_ichar() next_avail_ichar()
{ {
object *obj; object *obj;
i; int i;
boolean ichars[26]; boolean ichars[26];
for (i = 0; i < 26; i++) { for (i = 0; i < 26; i++) {

View File

@ -175,7 +175,7 @@ short rn;
} }
get_dungeon_char(row, col) get_dungeon_char(row, col)
row, col; int row, col;
{ {
unsigned short mask = dungeon[row][col]; unsigned short mask = dungeon[row][col];
@ -314,7 +314,7 @@ party_objects(rn)
} }
get_room_number(row, col) get_room_number(row, col)
row, col; int row, col;
{ {
short i; short i;

View File

@ -81,7 +81,7 @@ extern boolean sustain_strength;
extern short blind; extern short blind;
trap_at(row, col) trap_at(row, col)
row, col; int row, col;
{ {
short i; short i;