KINGDOM: add change in setATimer for the demo

This commit is contained in:
Strangerke 2017-07-09 22:12:08 +02:00 committed by Eugene Sandulenko
parent ecacfbda0c
commit c4cc901c63
2 changed files with 7 additions and 1 deletions

View File

@ -179,6 +179,10 @@ KingdomGame::~KingdomGame() {
delete _rnd;
}
bool KingdomGame::isDemo() const {
return (bool)(_gameDescription->flags & ADGF_DEMO);
}
Common::Error KingdomGame::run() {
initGraphics(320, 200, false);
_console = new Console(this);
@ -1322,7 +1326,8 @@ void KingdomGame::setATimer() {
_aTimerFlag = false;
_aTimer = _wizard ? 114 : 133;
playSound(0);
playSound(34);
if (!isDemo())
playSound(34);
break;
}
}

View File

@ -104,6 +104,7 @@ namespace Kingdom {
const char *getGameId() const;
Common::Platform getPlatform() const;
static bool readSavegameHeader(Common::InSaveFile *in, KingdomSavegameHeader &header);
bool isDemo() const;
private:
Console *_console;