mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-24 05:01:43 +00:00
Merge pull request #984 from Akz-/emi-chore-fix
EMI: Return false in IsChorePlaying if the chore is paused. Fixes #983
This commit is contained in:
commit
8eccef7579
@ -60,6 +60,7 @@ public:
|
||||
void setPaused(bool paused);
|
||||
|
||||
bool isPlaying() { return _playing; }
|
||||
bool isPaused() { return _paused; }
|
||||
bool isLooping() { return _looping; }
|
||||
|
||||
void advance(uint msecs);
|
||||
|
@ -268,7 +268,7 @@ void Lua_V2::IsChorePlaying() {
|
||||
Chore *c = EMIChore::getPool().getObject(chore);
|
||||
|
||||
if (c) {
|
||||
pushbool(c->isPlaying());
|
||||
pushbool(c->isPlaying() && !c->isPaused());
|
||||
} else {
|
||||
lua_pushnil();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user