Mercurial > hg > early-roguelike
comparison arogue5/state.c @ 304:e52a8a7ad4c5
Fix many compiler warnings.
There should only be two changes in behavior:
arogue7/fight.c, arogue7/fight.c: a to-hit bonus is now correctly
applied to characters who are not monks instead of monks who are not
empty-handed.
urogue/fight.c: fixed an interaction with the "debug" macro that could
cause the wrong message to be displayed.
| author | John "Elwin" Edwards |
|---|---|
| date | Wed, 14 Apr 2021 18:55:33 -0400 |
| parents | d3968e9cb98d |
| children |
comparison
equal
deleted
inserted
replaced
| 303:e06ebc407615 | 304:e52a8a7ad4c5 |
|---|---|
| 1316 } | 1316 } |
| 1317 | 1317 |
| 1318 int | 1318 int |
| 1319 rs_read_sticks(FILE *inf) | 1319 rs_read_sticks(FILE *inf) |
| 1320 { | 1320 { |
| 1321 int i = 0, j = 0, list = 0; | 1321 int i = 0, list = 0; |
| 1322 | 1322 |
| 1323 if (read_error || format_error) | 1323 if (read_error || format_error) |
| 1324 return(READSTAT); | 1324 return(READSTAT); |
| 1325 | 1325 |
| 1326 rs_read_marker(inf, RSID_STICKS); | 1326 rs_read_marker(inf, RSID_STICKS); |
| 1643 } | 1643 } |
| 1644 | 1644 |
| 1645 int | 1645 int |
| 1646 rs_read_room(FILE *inf, struct room *r) | 1646 rs_read_room(FILE *inf, struct room *r) |
| 1647 { | 1647 { |
| 1648 int value = 0, n = 0, i = 0, index = 0, id = 0; | 1648 int i = 0, index = 0; |
| 1649 struct linked_list *fires=NULL, *item = NULL; | 1649 struct linked_list *fires=NULL, *item = NULL; |
| 1650 | 1650 |
| 1651 if (read_error || format_error) | 1651 if (read_error || format_error) |
| 1652 return(READSTAT); | 1652 return(READSTAT); |
| 1653 | 1653 |
