Fix some functions not returning the right type.
This commit is contained in:
parent
2e20820d1b
commit
2d4a66298a
6 changed files with 17 additions and 4 deletions
|
|
@ -357,6 +357,7 @@ hungdam(void)
|
|||
when F_WEAK: return -1;
|
||||
when F_FAINT: return -2;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -925,6 +925,8 @@ rs_write_window(FILE *savef, WINDOW *win)
|
|||
for(row=0;row<height;row++)
|
||||
for(col=0;col<width;col++)
|
||||
rs_write_int(savef, mvwinch(win,row,col));
|
||||
|
||||
return(WRITESTAT);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
@ -1381,6 +1383,8 @@ rs_write_monster_references(FILE *savef, struct monster *marray[], int count)
|
|||
|
||||
for(i = 0; i < count; i++)
|
||||
rs_write_monster_reference(savef, marray[i]);
|
||||
|
||||
return(WRITESTAT);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
@ -1390,6 +1394,8 @@ rs_read_monster_references(int inf, struct monster *marray[], int count)
|
|||
|
||||
for(i = 0; i < count; i++)
|
||||
rs_read_monster_reference(inf, &marray[i]);
|
||||
|
||||
return(READSTAT);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
@ -1560,6 +1566,7 @@ rs_write_traps(FILE *savef, struct trap *trap,int count)
|
|||
rs_write_int(savef, trap[n].tr_flags);
|
||||
rs_write_char(savef, trap[n].tr_type);
|
||||
}
|
||||
return (WRITESTAT);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue