comparison srogue/state.c @ 242:b49d8b963df3

Fix some functions not returning the right type.
author John "Elwin" Edwards
date Sat, 19 Mar 2016 16:18:58 -0400
parents 696277507a2e
children d3968e9cb98d
comparison
equal deleted inserted replaced
241:d0f652010675 242:b49d8b963df3
923 rs_write_int(savef,width); 923 rs_write_int(savef,width);
924 924
925 for(row=0;row<height;row++) 925 for(row=0;row<height;row++)
926 for(col=0;col<width;col++) 926 for(col=0;col<width;col++)
927 rs_write_int(savef, mvwinch(win,row,col)); 927 rs_write_int(savef, mvwinch(win,row,col));
928
929 return(WRITESTAT);
928 } 930 }
929 931
930 int 932 int
931 rs_read_window(int inf, WINDOW *win) 933 rs_read_window(int inf, WINDOW *win)
932 { 934 {
1379 { 1381 {
1380 int i; 1382 int i;
1381 1383
1382 for(i = 0; i < count; i++) 1384 for(i = 0; i < count; i++)
1383 rs_write_monster_reference(savef, marray[i]); 1385 rs_write_monster_reference(savef, marray[i]);
1386
1387 return(WRITESTAT);
1384 } 1388 }
1385 1389
1386 int 1390 int
1387 rs_read_monster_references(int inf, struct monster *marray[], int count) 1391 rs_read_monster_references(int inf, struct monster *marray[], int count)
1388 { 1392 {
1389 int i; 1393 int i;
1390 1394
1391 for(i = 0; i < count; i++) 1395 for(i = 0; i < count; i++)
1392 rs_read_monster_reference(inf, &marray[i]); 1396 rs_read_monster_reference(inf, &marray[i]);
1397
1398 return(READSTAT);
1393 } 1399 }
1394 1400
1395 int 1401 int
1396 rs_write_object(FILE *savef, struct object *o) 1402 rs_write_object(FILE *savef, struct object *o)
1397 { 1403 {
1558 rs_write_coord(savef, trap[n].tr_pos); 1564 rs_write_coord(savef, trap[n].tr_pos);
1559 rs_write_coord(savef, trap[n].tr_goto); 1565 rs_write_coord(savef, trap[n].tr_goto);
1560 rs_write_int(savef, trap[n].tr_flags); 1566 rs_write_int(savef, trap[n].tr_flags);
1561 rs_write_char(savef, trap[n].tr_type); 1567 rs_write_char(savef, trap[n].tr_type);
1562 } 1568 }
1569 return (WRITESTAT);
1563 } 1570 }
1564 1571
1565 int 1572 int
1566 rs_read_traps(int inf, struct trap *trap, int count) 1573 rs_read_traps(int inf, struct trap *trap, int count)
1567 { 1574 {