diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dreamweb/sprite.cpp | 6 | ||||
-rw-r--r-- | engines/dreamweb/structs.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/engines/dreamweb/sprite.cpp b/engines/dreamweb/sprite.cpp index b5807aa512..9043409083 100644 --- a/engines/dreamweb/sprite.cpp +++ b/engines/dreamweb/sprite.cpp @@ -1070,10 +1070,10 @@ void DreamGenContext::checkspeed() { bool DreamGenContext::checkspeed(ReelRoutine *routine) { if (data.byte(kLastweapon) != (uint8)-1) return true; - ++routine->b6; - if (routine->b6 != routine->b5) + ++routine->counter; + if (routine->counter != routine->period) return false; - routine->b6 = 0; + routine->counter = 0; return true; } diff --git a/engines/dreamweb/structs.h b/engines/dreamweb/structs.h index c9ec703ded..db863ac226 100644 --- a/engines/dreamweb/structs.h +++ b/engines/dreamweb/structs.h @@ -167,8 +167,8 @@ struct ReelRoutine { uint8 b4; uint16 reelPointer() const { return READ_LE_UINT16(&b3); } void setReelPointer(uint16 v) { WRITE_LE_UINT16(&b3, v); } - uint8 b5; - uint8 b6; + uint8 period; + uint8 counter; uint8 b7; }; |