fixed regression bug introduced by changes for "autofix" command
authorHolger Schemel <info@artsoft.org>
Tue, 15 Sep 2020 18:04:33 +0000 (20:04 +0200)
committerHolger Schemel <info@artsoft.org>
Tue, 15 Sep 2020 18:07:50 +0000 (20:07 +0200)
This fixes program crashes that may happen when using automatic tape
replay with visible feedback (like "autoplay", "autowarp" etc.).

This is a regression of commit e534f3cf.

src/init.c

index be7447666d29dc90c4e29ca326d51a365bb2c84d..1674aa56cbc069e99e8547e817f0c0a1e1cd0f96 100644 (file)
@@ -5080,7 +5080,7 @@ static void Execute_Command(char *command)
        str_ptr++;
     }
 
-    if (global.autoplay_mode & AUTOPLAY_MODE_WARP_NO_DISPLAY)
+    if (global.autoplay_mode & AUTOPLAY_WARP_NO_DISPLAY)
       program.headless = TRUE;
   }
   else if (strPrefix(command, "patch tapes "))