Magic-number elimination.
This commit is contained in:
parent
73278b1a3c
commit
346bcf9458
4 changed files with 6 additions and 5 deletions
2
init.c
2
init.c
|
@ -92,7 +92,7 @@ long initialise(void)
|
|||
for (int treasure = 1; treasure <= NOBJECTS; treasure++) {
|
||||
if (objects[treasure].is_treasure) {
|
||||
if (objects[treasure].inventory != 0)
|
||||
game.prop[treasure] = -1;
|
||||
game.prop[treasure] = NOT_YET_FOUND;
|
||||
game.tally = game.tally - game.prop[treasure];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue