Rationalize attack logic
[open-adventure.git] / main.c
diff --git a/main.c b/main.c
index 1269efaf935fcc289b6023d4deb151d90c3300b0..7eb21dab571a9be8d7c381f89ddac3d67eafb91a 100644 (file)
--- a/main.c
+++ b/main.c
@@ -185,7 +185,7 @@ static void checkhints(void)
                     game.hintlc[hint] = 0;
                     return;
                 case 4:        /* dark */
-                    if (game.prop[EMERALD] != -1 && game.prop[PYRAMID] == -1)
+                    if (game.prop[EMERALD] != NOT_YET_FOUND && game.prop[PYRAMID] == NOT_YET_FOUND)
                         break;
                     game.hintlc[hint] = 0;
                     return;