aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Hesse2007-10-30 10:47:24 +0000
committerSven Hesse2007-10-30 10:47:24 +0000
commit1f80f1f47e0f9c97e506ff9f72479aa548387965 (patch)
tree0987a5bff7e6a6cfa04ead3921c656b312ade102
parent22cdf4f85cbf96ca7ec0275075d34a4de12686db (diff)
downloadscummvm-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.cpp12
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) {