Simplify initialization code. All tests pass, 100% coverage.
This commit is contained in:
parent
9ff036d789
commit
a6b41fdb8f
1 changed files with 1 additions and 1 deletions
2
init.c
2
init.c
|
@ -89,9 +89,9 @@ int initialise(void)
|
|||
* not yet found, so we know when to close the cave. */
|
||||
for (int treasure = 1; treasure <= NOBJECTS; treasure++) {
|
||||
if (objects[treasure].is_treasure) {
|
||||
++game.tally;
|
||||
if (objects[treasure].inventory != 0)
|
||||
PROP_SET_NOT_FOUND(treasure);
|
||||
game.tally = game.tally - game.objects[treasure].prop;
|
||||
}
|
||||
}
|
||||
game.conds = setbit(COND_HBASE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue