diff options
author | Paul Gilbert | 2014-03-08 10:53:10 -0500 |
---|---|---|
committer | Paul Gilbert | 2014-03-08 10:53:10 -0500 |
commit | 984099ae2ca9dd53b47e44e7815c560c68acbd61 (patch) | |
tree | c1497c4e34a3c990d83dd15c97f9bc14dbb40767 /engines/mads/animation.cpp | |
parent | 9c88ed16828ef6dde467fc03bb9af8d04b0bb3e2 (diff) | |
download | scummvm-rg350-984099ae2ca9dd53b47e44e7815c560c68acbd61.tar.gz scummvm-rg350-984099ae2ca9dd53b47e44e7815c560c68acbd61.tar.bz2 scummvm-rg350-984099ae2ca9dd53b47e44e7815c560c68acbd61.zip |
MADS: Implemented stubbed SpriteSlots methods
Diffstat (limited to 'engines/mads/animation.cpp')
-rw-r--r-- | engines/mads/animation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/animation.cpp b/engines/mads/animation.cpp index 90f1331d92..e4549d1054 100644 --- a/engines/mads/animation.cpp +++ b/engines/mads/animation.cpp @@ -447,7 +447,7 @@ void Animation::update() { int newIndex = -1; if (paChanged) { - newIndex = scene._spriteSlots.getIndex(); + newIndex = scene._spriteSlots.add(); scene._spriteSlots[newIndex]._seqIndex = -1; scene._spriteSlots[newIndex]._spriteType = ST_FULL_SCREEN_REFRESH; } @@ -476,7 +476,7 @@ void Animation::update() { } if (spriteSlotIndex == 0) { - int slotIndex = scene._spriteSlots.getIndex(); + int slotIndex = scene._spriteSlots.add(); SpriteSlot &slot = scene._spriteSlots[slotIndex]; slot.copy(_frameEntries[_oldFrameEntry]._spriteSlot); slot._seqIndex = _frameEntries[_oldFrameEntry]._seqIndex + 0x80; |