diff options
author | Sven Hesse | 2012-06-15 13:32:43 +0200 |
---|---|---|
committer | Sven Hesse | 2012-06-15 13:35:46 +0200 |
commit | 7632246264102d88922fc963284af6250ea12f57 (patch) | |
tree | 8316a8fd8b7522b83a350e908195331730bc9081 /engines/gob/inter.h | |
parent | c668431522d834b24c00baf964d2b6b3f3a2bbb8 (diff) | |
download | scummvm-rg350-7632246264102d88922fc963284af6250ea12f57.tar.gz scummvm-rg350-7632246264102d88922fc963284af6250ea12f57.tar.bz2 scummvm-rg350-7632246264102d88922fc963284af6250ea12f57.zip |
GOB: Implement Util::getKeyState() for Little Red
This makes the bees level playable, removing the "lock-up".
Collision detection between Little Red and the bees and butterflies
doesn't work yet though, so they're just flying through her.
Nevertheless, the game seems to be completable now.
Diffstat (limited to 'engines/gob/inter.h')
-rw-r--r-- | engines/gob/inter.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/gob/inter.h b/engines/gob/inter.h index 907a275e50..0625646cdd 100644 --- a/engines/gob/inter.h +++ b/engines/gob/inter.h @@ -142,8 +142,9 @@ protected: VariableStack _varStack; - // The busy-wait detection in o1_keyFunc breaks fast scrolling in Ween - bool _noBusyWait; + // Busy-wait detection + bool _noBusyWait; + uint32 _lastBusyWait; GobEngine *_vm; @@ -172,6 +173,8 @@ protected: void storeString(const char *value); uint32 readValue(uint16 index, uint16 type); + + void handleBusyWait(); }; class Inter_v1 : public Inter { @@ -522,6 +525,8 @@ protected: virtual void setupOpcodesDraw(); virtual void setupOpcodesFunc(); virtual void setupOpcodesGob(); + + void oLittleRed_keyFunc(OpFuncParams ¶ms); }; class Inter_v3 : public Inter_v2 { |