mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 08:55:45 +00:00
TSAGE: Add missing dispatch method to fix getting shot too quickly in Scene #40
This commit is contained in:
parent
9f00f18e4e
commit
4a64e928cf
@ -1330,6 +1330,24 @@ void Scene40::Action8::signal() {
|
||||
}
|
||||
}
|
||||
|
||||
void Scene40::Action8::dispatch() {
|
||||
if (_action)
|
||||
_action->dispatch();
|
||||
|
||||
if (_delayFrames) {
|
||||
uint32 frameNumber = _globals->_events.getFrameNumber();
|
||||
if ((_startFrame + 60) < frameNumber) {
|
||||
--_delayFrames;
|
||||
_startFrame = frameNumber;
|
||||
|
||||
if (_delayFrames <= 0) {
|
||||
_delayFrames = 0;
|
||||
signal();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
void Scene40::DyingKzin::doAction(int action) {
|
||||
|
@ -201,6 +201,7 @@ class Scene40 : public Scene {
|
||||
class Action8 : public Action {
|
||||
public:
|
||||
virtual void signal();
|
||||
virtual void dispatch();
|
||||
};
|
||||
|
||||
/* Objects */
|
||||
|
Loading…
x
Reference in New Issue
Block a user