Bringing back "Auto Start" option in the Game Menu.
[blender.git] / source / creator / creator.c
index 3b9bac2ccd5ec25b9361cf14326eb45f43b0bcbf..1d811ba61f34c01a8eccd11eb0ed5c3b33c266b7 100644 (file)
@@ -1037,8 +1037,14 @@ int main(int argc, char **argv)
                WM_exit(C);
        }
 
-       if(!G.background && !G.file_loaded)
-               WM_init_splash(C);
+       else {
+               if(G.fileflags & G_FILE_AUTOPLAY){
+                       WM_init_game(C);
+               }
+
+               else if(!G.file_loaded)
+                       WM_init_splash(C);
+       }
 
        WM_main(C);