X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2Fmain.cpp;h=10f2459eb4874ac1ff7c5b145bfa8ec999e2223e;hb=26200179711ba8a4faa41ae77b85a808d46255f4;hp=2803226a0f4daeed83e077e173e835688562d2e0;hpb=87b921372cb60d4b0ec266bec44f97eced144d1a;p=lugaru.git diff --git a/Source/main.cpp b/Source/main.cpp index 2803226..10f2459 100644 --- a/Source/main.cpp +++ b/Source/main.cpp @@ -617,8 +617,6 @@ int main(int argc, char **argv) return 1; } - debugmode = commandLineOptions[DEBUG]; - // !!! FIXME: we could use a Win32 API for this. --ryan. #ifndef WIN32 chdirToAppPath(argv[0]); @@ -637,6 +635,10 @@ int main(int argc, char **argv) return 42; } + if (commandLineOptions[DEBUG]) { + debugmode = true; + } + bool gameDone = false; bool gameFocused = true;