diff options
author | Bertrand Augereau | 2011-06-28 04:24:42 +0200 |
---|---|---|
committer | Bertrand Augereau | 2011-07-18 22:59:15 +0200 |
commit | 3ff0cf2d29d9011f790b3609d5b8b2c173a0f710 (patch) | |
tree | f2db7b9e117e24ec4a3c49d5aca99d859961b05d | |
parent | 11917ad700e98bb6d9e8f24e517b9c36d0cd4834 (diff) | |
download | scummvm-rg350-3ff0cf2d29d9011f790b3609d5b8b2c173a0f710.tar.gz scummvm-rg350-3ff0cf2d29d9011f790b3609d5b8b2c173a0f710.tar.bz2 scummvm-rg350-3ff0cf2d29d9011f790b3609d5b8b2c173a0f710.zip |
DREAMWEB: Sprite::b19 is Sprite::frame
-rw-r--r-- | engines/dreamweb/structs.h | 2 | ||||
-rw-r--r-- | engines/dreamweb/stubs.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/engines/dreamweb/structs.h b/engines/dreamweb/structs.h index 822546b7f3..c042a2d9cf 100644 --- a/engines/dreamweb/structs.h +++ b/engines/dreamweb/structs.h @@ -11,7 +11,7 @@ struct Sprite { uint8 b15; uint16 w16; uint8 delay; - uint8 b19; + uint8 frame; uint16 obj_data; uint8 b22; uint8 priority; diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index 45efe8b02c..5ead9e3ab9 100644 --- a/engines/dreamweb/stubs.cpp +++ b/engines/dreamweb/stubs.cpp @@ -838,11 +838,11 @@ void DreamGenContext::backobject(Sprite* sprite) { } void DreamGenContext::constant(Sprite* sprite, ObjData* objData) { - ++sprite->b19; - if (objData->b18[sprite->b19] == 255) { - sprite->b19 = 0; + ++sprite->frame; + if (objData->b18[sprite->frame] == 255) { + sprite->frame = 0; } - uint8 b18 = objData->b18[sprite->b19]; + uint8 b18 = objData->b18[sprite->frame]; objData->b17 = b18; sprite->b15 = b18; } |