Mercurial > hg > early-roguelike
comparison srogue/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 |
---|---|
830 } | 830 } |
831 | 831 |
832 int | 832 int |
833 rs_read_strings(FILE *inf, char **s, int count, int max) | 833 rs_read_strings(FILE *inf, char **s, int count, int max) |
834 { | 834 { |
835 int len = 0; | |
836 int n = 0; | 835 int n = 0; |
837 int value = 0; | 836 int value = 0; |
838 | 837 |
839 if (rs_read_int(inf,&value) != 0) | 838 if (rs_read_int(inf,&value) != 0) |
840 { | 839 { |
2241 } | 2240 } |
2242 | 2241 |
2243 int | 2242 int |
2244 rs_restore_file(FILE *inf) | 2243 rs_restore_file(FILE *inf) |
2245 { | 2244 { |
2245 #ifndef WIZARD | |
2246 bool junk; | 2246 bool junk; |
2247 #endif | |
2247 int endian = 0x01020304; | 2248 int endian = 0x01020304; |
2248 big_endian = ( *((char *)&endian) == 0x01 ); | 2249 big_endian = ( *((char *)&endian) == 0x01 ); |
2249 | 2250 |
2250 rs_read_daemons(inf, d_list, MAXDAEMONS); | 2251 rs_read_daemons(inf, d_list, MAXDAEMONS); |
2251 rs_read_int(inf, &between); | 2252 rs_read_int(inf, &between); |