diff options
author | Sven Hesse | 2007-10-30 10:47:24 +0000 |
---|---|---|
committer | Sven Hesse | 2007-10-30 10:47:24 +0000 |
commit | 1f80f1f47e0f9c97e506ff9f72479aa548387965 (patch) | |
tree | 0987a5bff7e6a6cfa04ead3921c656b312ade102 | |
parent | 22cdf4f85cbf96ca7ec0275075d34a4de12686db (diff) | |
download | scummvm-rg350-1f80f1f47e0f9c97e506ff9f72479aa548387965.tar.gz scummvm-rg350-1f80f1f47e0f9c97e506ff9f72479aa548387965.tar.bz2 scummvm-rg350-1f80f1f47e0f9c97e506ff9f72479aa548387965.zip |
Fixing the scenery/overlay redrawing in Woodruff
svn-id: r29324
-rw-r--r-- | engines/gob/scenery.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/engines/gob/scenery.cpp b/engines/gob/scenery.cpp index 0d08061b4f..44a437fd83 100644 --- a/engines/gob/scenery.cpp +++ b/engines/gob/scenery.cpp @@ -392,11 +392,15 @@ void Scenery::updateStatic(int16 orderFrom) { if (_curStatic == -1) return; - updateStatic(orderFrom, _curStatic & 0xFF, _curStaticLayer & 0xFF); + if (_curStatic < 10000) { + updateStatic(orderFrom, _curStatic & 0xFF, _curStaticLayer & 0xFF); - if (_curStatic & 0xFF00) - updateStatic(orderFrom, ((_curStatic >> 8) & 0xFF) - 1, - (_curStaticLayer >> 8) & 0xFF); + if (_curStatic & 0xFF00) + updateStatic(orderFrom, ((_curStatic >> 8) & 0xFF) - 1, + (_curStaticLayer >> 8) & 0xFF); + } else + for (int i = 0; i < (_curStatic - 10000); i++) + updateStatic(orderFrom, i, 0); } int16 Scenery::loadAnim(char search) { |