Magic-number elimination.
This commit is contained in:
parent
f37a413524
commit
abf820bb5c
4 changed files with 7 additions and 8 deletions
2
advent.h
2
advent.h
|
@ -27,7 +27,7 @@
|
|||
|
||||
/* Special object-state values - integers > 0 are object-specific */
|
||||
#define STATE_NOTFOUND -1 // 'Not found" state of treasures */
|
||||
#define STATE_GROUND 0 // After discovered, before messed with
|
||||
#define STATE_FOUND 0 // After discovered, before messed with
|
||||
#define STATE_IN_CAVITY 1 // State value common to all gemstones
|
||||
|
||||
/* Map a state property value to a negative range, where the object cannot be
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue