aboutsummaryrefslogtreecommitdiff
path: root/scumm/gfx.cpp
diff options
context:
space:
mode:
authorMax Horn2003-05-10 22:35:12 +0000
committerMax Horn2003-05-10 22:35:12 +0000
commit5be0ce7adc9952ff065c7ec04cab4b87eb7b0e28 (patch)
treeeb14397b4e391d1c3c4e4c799b70fa438da34bb1 /scumm/gfx.cpp
parentf412952667e36a023b239b8ee62994635ca375a5 (diff)
downloadscummvm-rg350-5be0ce7adc9952ff065c7ec04cab4b87eb7b0e28.tar.gz
scummvm-rg350-5be0ce7adc9952ff065c7ec04cab4b87eb7b0e28.tar.bz2
scummvm-rg350-5be0ce7adc9952ff065c7ec04cab4b87eb7b0e28.zip
work around some illegal var access' in COMI/V8 - there are more, but I am not always sure if avoiding the access is the proper fix; maybe in some cases we should just define that var for V8 to the proper value?
svn-id: r7425
Diffstat (limited to 'scumm/gfx.cpp')
-rw-r--r--scumm/gfx.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index f7379e03c2..a262dbeed9 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -2724,8 +2724,9 @@ void Scumm::cyclePalette() {
byte *start, *end;
byte tmp[3];
- if (_features & GF_AFTER_V2) {
+ if (VAR_TIMER == 0xFF) {
// FIXME - no idea if this is right :-/
+ // Needed for both V2 and V8 at this time
valueToAdd = VAR(VAR_TIMER_NEXT);
} else {
valueToAdd = VAR(VAR_TIMER);