KINGDOM: Add check in main loop to avoid GPL3 opcodes in demo

This commit is contained in:
Strangerke 2017-07-10 00:48:43 +02:00 committed by Eugene Sandulenko
parent 33ef3352ce
commit 45cafdc8aa

View File

@ -202,8 +202,13 @@ Common::Error KingdomGame::run() {
GPLogic1();
if (_statPlay > 249 && _statPlay < 500)
GPLogic2();
if (_statPlay > 499 && _statPlay < 900)
GPLogic3();
if (_statPlay > 499 && _statPlay < 900) {
if (!isDemo())
GPLogic3();
else
warning("Unexpected GPL3 opcode found in demo: %d", _statPlay);
}
if (_statPlay > 899)
GPLogic4();
}