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
This commit is contained in:
Max Horn 2003-05-10 22:35:12 +00:00
parent f412952667
commit 5be0ce7adc
3 changed files with 9 additions and 5 deletions

View file

@ -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);