Mercurial > hg > early-roguelike
comparison rogue5/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 | d08f19d529eb |
children |
comparison
equal
deleted
inserted
replaced
303:e06ebc407615 | 304:e52a8a7ad4c5 |
---|---|
62 #define RSID_DEATHTYPE 0xABCD0014 | 62 #define RSID_DEATHTYPE 0xABCD0014 |
63 #define RSID_CTYPES 0XABCD0015 | 63 #define RSID_CTYPES 0XABCD0015 |
64 #define RSID_COORDLIST 0XABCD0016 | 64 #define RSID_COORDLIST 0XABCD0016 |
65 #define RSID_ROOMS 0XABCD0017 | 65 #define RSID_ROOMS 0XABCD0017 |
66 | 66 |
67 #define READSTAT (format_error || read_error ) | |
68 #define WRITESTAT (write_error) | |
69 | |
70 static int read_error = FALSE; | |
71 static int write_error = FALSE; | |
72 static int format_error = FALSE; | |
73 static int endian = 0x01020304; | 67 static int endian = 0x01020304; |
74 #define big_endian ( *((char *)&endian) == 0x01 ) | 68 #define big_endian ( *((char *)&endian) == 0x01 ) |
75 | 69 |
76 void | 70 void |
77 rs_write(FILE *savef, const void *ptr, size_t size) | 71 rs_write(FILE *savef, const void *ptr, size_t size) |