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;
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');

View File

@ -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;

View File

@ -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) &&

View File

@ -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;

View File

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

View File

@ -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;

View File

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