velocityblur = 0;
volume = 0.8f;
ambientsound = 1;
+ debugmode = 0;
crouchkey = SDL_SCANCODE_LSHIFT;
jumpkey = SDL_SCANCODE_SPACE;
ipstream >> damageeffects;
} else if ( !strncmp(setting, "Text", 4) ) {
ipstream >> texttoggle;
+ } else if ( !strncmp(setting, "Debug", 5) ) {
+ ipstream >> debugmode;
} else if ( !strncmp(setting, "Show Points", 11) ) {
ipstream >> showpoints;
} else if ( !strncmp(setting, "Always Blur", 11) ) {
return 1;
}
- debugmode = commandLineOptions[DEBUG];
-
// !!! FIXME: we could use a Win32 API for this. --ryan.
#ifndef WIN32
chdirToAppPath(argv[0]);
return 42;
}
+ if (commandLineOptions[DEBUG]) {
+ debugmode = true;
+ }
+
bool gameDone = false;
bool gameFocused = true;