Mercurial > hg > early-roguelike
comparison urogue/memory.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 | b8919055c2fc |
children | 13b482bd9e66 |
comparison
equal
deleted
inserted
replaced
303:e06ebc407615 | 304:e52a8a7ad4c5 |
---|---|
34 */ | 34 */ |
35 | 35 |
36 #define FENCE_SIZE (sizeof(size_t) * 1024) | 36 #define FENCE_SIZE (sizeof(size_t) * 1024) |
37 | 37 |
38 static int memdebug_level = 0; | 38 static int memdebug_level = 0; |
39 #ifdef MEM_DEBUG | |
39 static DICTIONARY *allocations = NULL; | 40 static DICTIONARY *allocations = NULL; |
40 static FILE *trace_file = NULL; | 41 static FILE *trace_file = NULL; |
42 #endif | |
41 | 43 |
42 /* set the debug level */ | 44 /* set the debug level */ |
43 void mem_debug(const int level) | 45 void mem_debug(const int level) |
44 { | 46 { |
45 memdebug_level = level; | 47 memdebug_level = level; |