Expand a macro to simplify code.
This commit is contained in:
parent
a4fd14caf7
commit
40742e112b
3 changed files with 7 additions and 8 deletions
4
main.c
4
main.c
|
@ -188,7 +188,7 @@ static void checkhints(void) {
|
|||
return;
|
||||
case 9: /* jade */
|
||||
if (game.tally == 1 &&
|
||||
OBJECT_IS_STASHED_OR_UNSEEN(JADE)) {
|
||||
(OBJECT_IS_STASHED(JADE) || OBJECT_IS_NOTFOUND(JADE))) {
|
||||
break;
|
||||
}
|
||||
game.hints[hint].lc = 0;
|
||||
|
@ -1061,7 +1061,7 @@ static void listobjects(void) {
|
|||
* running this code only on objects with the treasure
|
||||
* property set. Nope. There is mystery here.
|
||||
*/
|
||||
if (OBJECT_IS_STASHED_OR_UNSEEN(obj)) {
|
||||
if (OBJECT_IS_STASHED(i) || OBJECT_IS_NOTFOUND(obj)) {
|
||||
if (game.closed) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue