diff options
author | Florian Kagerer | 2009-03-09 01:57:42 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-03-09 01:57:42 +0000 |
commit | 76ab92f8ec6735c81dc80bb1ea836599f38abe2c (patch) | |
tree | 42236afe6b06de0f51ceb85f036d7bea92019248 /engines/kyra/scene_lol.cpp | |
parent | 6d9a047276d55c1e7299bfa503a7637205acf27f (diff) | |
download | scummvm-rg350-76ab92f8ec6735c81dc80bb1ea836599f38abe2c.tar.gz scummvm-rg350-76ab92f8ec6735c81dc80bb1ea836599f38abe2c.tar.bz2 scummvm-rg350-76ab92f8ec6735c81dc80bb1ea836599f38abe2c.zip |
LOL: added scene animations (like that fountain right at the start)
svn-id: r39251
Diffstat (limited to 'engines/kyra/scene_lol.cpp')
-rw-r--r-- | engines/kyra/scene_lol.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/engines/kyra/scene_lol.cpp b/engines/kyra/scene_lol.cpp index 3525a5a0df..2e0db82a04 100644 --- a/engines/kyra/scene_lol.cpp +++ b/engines/kyra/scene_lol.cpp @@ -1138,6 +1138,23 @@ void LoLEngine::drawScene(int pageNum) { _sceneUpdateRequired = false; } +void LoLEngine::updateSceneAnimations(int block, int wall, int val) { + if (wall == -1) { + for (int i = 0; i < 4; i++) + _levelBlockProperties[block].walls[i] = val; + if (_wllBuffer4[val] == 17) { + _levelBlockProperties[block].flags &= 0xef; + _levelBlockProperties[block].flags |= 0x20; + } else { + _levelBlockProperties[block].flags &= 0xdf; + } + } else { + _levelBlockProperties[block].walls[wall] = val; + } + + checkSceneUpdateNeed(block); +} + void LoLEngine::updateSceneWindow() { _screen->hideMouse(); _screen->copyRegion(112, 0, 112, 0, 176, 120, 0, _sceneDrawPage2, Screen::CR_NO_P_CHECK); |