comparison rogue4/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
2076 } 2076 }
2077 2077
2078 int 2078 int
2079 rs_restore_file(FILE *inf) 2079 rs_restore_file(FILE *inf)
2080 { 2080 {
2081 #ifndef WIZARD
2081 bool junk; 2082 bool junk;
2083 #endif
2082 THING *mitem; 2084 THING *mitem;
2083 int endian = 0x01020304; 2085 int endian = 0x01020304;
2084 big_endian = ( *((char *)&endian) == 0x01 ); 2086 big_endian = ( *((char *)&endian) == 0x01 );
2085 2087
2086 rs_read_boolean(inf, &after); 2088 rs_read_boolean(inf, &after);