world dump hotkey disabled by default
in big games accidently pressing this games made users drop out of the game and its a developer option anyway. From now it only works If debug is enabled.
This commit is contained in:
parent
3ad5a53560
commit
32859457f6
|
@ -408,8 +408,10 @@ void Gui::hotKey(SDL_KeyboardEvent key) {
|
||||||
}
|
}
|
||||||
//else if(key == configKeys.getCharKey("HotKeyDumpWorldToLog")) {
|
//else if(key == configKeys.getCharKey("HotKeyDumpWorldToLog")) {
|
||||||
else if(isKeyPressed(configKeys.getSDLKey("HotKeyDumpWorldToLog"),key) == true) {
|
else if(isKeyPressed(configKeys.getSDLKey("HotKeyDumpWorldToLog"),key) == true) {
|
||||||
std::string worldLog = world->DumpWorldToLog();
|
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled == true) {
|
||||||
if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] worldLog dumped to [%s]\n",__FILE__,__FUNCTION__,__LINE__,worldLog.c_str());
|
std::string worldLog = world->DumpWorldToLog();
|
||||||
|
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d] worldLog dumped to [%s]\n",__FILE__,__FUNCTION__,__LINE__,worldLog.c_str());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//else if(key == configKeys.getCharKey("HotKeyRotateUnitDuringPlacement")){
|
//else if(key == configKeys.getCharKey("HotKeyRotateUnitDuringPlacement")){
|
||||||
else if(isKeyPressed(configKeys.getSDLKey("HotKeyRotateUnitDuringPlacement"),key) == true) {
|
else if(isKeyPressed(configKeys.getSDLKey("HotKeyRotateUnitDuringPlacement"),key) == true) {
|
||||||
|
|
Loading…
Reference in New Issue