mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-25 05:34:27 +00:00
KINGDOM: add change in setATimer for the demo
This commit is contained in:
parent
ecacfbda0c
commit
c4cc901c63
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user