diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2010-03-05 13:37:55 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2010-03-05 13:37:55 +0300 |
commit | 8f5c9f64e2de8a9d16a83855fdec3455c3e2670f (patch) | |
tree | 96d902c84bf0f6e7ac8844fa013421bc478520b6 /source/creator | |
parent | 4eeb6b5755c4a2f7aa1fe180cd438460c244852a (diff) |
Bringing back "Auto Start" option in the Game Menu.
It's (still) not working since the pool in the operator will not allow this operator to run without context.
For the window/area/screen has to be created somewhere (maybe in WM_init_game ).
I have no idea on what should be done to initialize it here, so if anyone knows how to proceed, please help here.
* side note: should we also have it as a command line option?
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index 3b9bac2ccd5..1d811ba61f3 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -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); |