Mercurial > hg > early-roguelike
changeset 242:b49d8b963df3
Fix some functions not returning the right type.
author | John "Elwin" Edwards |
---|---|
date | Sat, 19 Mar 2016 16:18:58 -0400 |
parents | d0f652010675 |
children | 8ee1c19d6f99 |
files | arogue5/state.c arogue7/state.c rogue4/state.c srogue/pstats.c srogue/state.c xrogue/rip.c |
diffstat | 6 files changed, 17 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/arogue5/state.c Sat Mar 12 14:36:25 2016 -0500 +++ b/arogue5/state.c Sat Mar 19 16:18:58 2016 -0400 @@ -1813,6 +1813,8 @@ rs_write_coord(savef, trap[n].tr_pos); rs_write_long(savef, trap[n].tr_flags); } + + return (WRITESTAT); } int @@ -2310,7 +2312,7 @@ return(READSTAT); } -int +void rs_fix_thing_list(struct linked_list *list) { struct linked_list *item;
--- a/arogue7/state.c Sat Mar 12 14:36:25 2016 -0500 +++ b/arogue7/state.c Sat Mar 19 16:18:58 2016 -0400 @@ -1941,6 +1941,7 @@ rs_write_coord(savef, trap[n].tr_pos); rs_write_long(savef, trap[n].tr_flags); } + return (WRITESTAT); } int @@ -2431,7 +2432,7 @@ return(READSTAT); } -int +void rs_fix_thing_list(struct linked_list *list) { struct linked_list *item;
--- a/rogue4/state.c Sat Mar 12 14:36:25 2016 -0500 +++ b/rogue4/state.c Sat Mar 19 16:18:58 2016 -0400 @@ -902,6 +902,8 @@ for(row=0;row<height;row++) for(col=0;col<width;col++) rs_write_int(savef, mvwinch(win,row,col)); + + return(WRITESTAT); } int @@ -1554,7 +1556,7 @@ } } -int +void rs_fix_thing_list(THING *list) { THING *item;
--- a/srogue/pstats.c Sat Mar 12 14:36:25 2016 -0500 +++ b/srogue/pstats.c Sat Mar 19 16:18:58 2016 -0400 @@ -357,6 +357,7 @@ when F_WEAK: return -1; when F_FAINT: return -2; } + return 0; } /*
--- a/srogue/state.c Sat Mar 12 14:36:25 2016 -0500 +++ b/srogue/state.c Sat Mar 19 16:18:58 2016 -0400 @@ -925,6 +925,8 @@ 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 @@ for(i = 0; i < count; i++) rs_write_monster_reference(savef, marray[i]); + + return(WRITESTAT); } int @@ -1390,6 +1394,8 @@ for(i = 0; i < count; i++) rs_read_monster_reference(inf, &marray[i]); + + return(READSTAT); } int @@ -1560,6 +1566,7 @@ rs_write_int(savef, trap[n].tr_flags); rs_write_char(savef, trap[n].tr_type); } + return (WRITESTAT); } int