Fix game type parsing.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 12 Sep 2006 17:28:40 +0000 (17:28 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 12 Sep 2006 17:28:40 +0000 (17:28 +0000)
setup.c

diff --git a/setup.c b/setup.c
index 9bf6a2590a15f0d7b77dd7dfa395e4c851828806..8499184ad3d28cbad893732f1a83508c5118dc96 100644 (file)
--- a/setup.c
+++ b/setup.c
@@ -478,14 +478,14 @@ int choose(int needprompt)
        game.options &=~ (OPTION_THOLIAN | OPTION_PLANETS | OPTION_THINGY | OPTION_PROBE | OPTION_RAMMING | OPTION_MVBADDY | OPTION_BLKHOLE | OPTION_BASE);
        game.options |= OPTION_PLAIN;
     } 
-    if (isit("almy")) {
+    else if (isit("almy")) {
        // Approximates Tom Almy's version.
        game.options &=~ (OPTION_THINGY | OPTION_BLKHOLE | OPTION_BASE);
        game.options |= OPTION_ALMY;
     }
-    if (isit("fancy"))
+    else if (isit("fancy"))
        /* do nothing */;
-    if (strlen(citem)) {
+    else if (strlen(citem)) {
            proutn("What is \"");
            proutn(citem);
            prout("\"?");