Don't forget to ask important questions when removing restore of saves
[open-adventure.git] / main.c
diff --git a/main.c b/main.c
index 5f7cd3fe2788d49ac449491d68ddc2ddad590acf..8c8b47c558033adbc913cc4bf64c78927ec6f471 100644 (file)
--- a/main.c
+++ b/main.c
@@ -116,6 +116,10 @@ int main(int argc, char *argv[])
     } else {
         restore(rfp);
     }
+#else
+    game.novice = yes(arbitrary_messages[WELCOME_YOU], arbitrary_messages[CAVE_NEARBY], arbitrary_messages[NO_MESSAGE]);
+    if (game.novice)
+        game.limit = NOVICELIMIT;
 #endif
 
     if (settings.logfp)
@@ -1014,9 +1018,7 @@ static bool do_command()
         listobjects();
 
 L2012:
-        command.verb = 0;
         game.oldobj = command.obj;
-        command.obj = 0;
 
 L2600:
         checkhints();
@@ -1047,10 +1049,12 @@ L2600:
                 return (false);
             if (word_count(input) > 2) {
                 rspeak(TWO_WORDS);
+                free(input);
                 continue;
             }
             if (strcmp(input, "") != 0)
                 break;
+            free(input);
         }
 
         strncpy(inputbuf, input, LINESIZE - 1);