HDB: Add cheating debug statment and remove...

redundant warnings
This commit is contained in:
Nipun Garg 2019-07-14 04:07:54 +05:30 committed by Eugene Sandulenko
parent 779f455292
commit 723b86e1cf
2 changed files with 3 additions and 2 deletions

View File

@ -471,7 +471,7 @@ void AI::stopEntity(AIEntity *e) {
e->state = STATE_FLOATING;
return;
default:
warning("AI-FUNCS: stopEntity: Unintended State");
break;
}
if (e->type != AI_DIVERTER) {
@ -501,7 +501,7 @@ void AI::stopEntity(AIEntity *e) {
e->state = STATE_NONE;
break;
default:
warning("AI-FUNCS: stopEntity: DIR_NONE");
break;
}
}
}

View File

@ -126,6 +126,7 @@ void Menu::readConfig() {
if (ConfMan.hasKey(CONFIG_CHEAT)) {
g_hdb->setCheatingOn();
debug("Cheating enabled");
}
ConfMan.flushToDisk();