Mercurial > hg > early-roguelike
comparison arogue7/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 | b67b99f6c92b |
children | d3968e9cb98d |
comparison
equal
deleted
inserted
replaced
241:d0f652010675 | 242:b49d8b963df3 |
---|---|
1939 rs_write_char(savef, trap[n].tr_type); | 1939 rs_write_char(savef, trap[n].tr_type); |
1940 rs_write_char(savef, trap[n].tr_show); | 1940 rs_write_char(savef, trap[n].tr_show); |
1941 rs_write_coord(savef, trap[n].tr_pos); | 1941 rs_write_coord(savef, trap[n].tr_pos); |
1942 rs_write_long(savef, trap[n].tr_flags); | 1942 rs_write_long(savef, trap[n].tr_flags); |
1943 } | 1943 } |
1944 return (WRITESTAT); | |
1944 } | 1945 } |
1945 | 1946 |
1946 int | 1947 int |
1947 rs_read_traps(int inf, struct trap *trap, int count) | 1948 rs_read_traps(int inf, struct trap *trap, int count) |
1948 { | 1949 { |
2429 *list = head; | 2430 *list = head; |
2430 | 2431 |
2431 return(READSTAT); | 2432 return(READSTAT); |
2432 } | 2433 } |
2433 | 2434 |
2434 int | 2435 void |
2435 rs_fix_thing_list(struct linked_list *list) | 2436 rs_fix_thing_list(struct linked_list *list) |
2436 { | 2437 { |
2437 struct linked_list *item; | 2438 struct linked_list *item; |
2438 | 2439 |
2439 for(item = list; item != NULL; item = item->l_next) | 2440 for(item = list; item != NULL; item = item->l_next) |