From 984099ae2ca9dd53b47e44e7815c560c68acbd61 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 8 Mar 2014 10:53:10 -0500 Subject: MADS: Implemented stubbed SpriteSlots methods --- engines/mads/animation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/mads/animation.cpp') 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; -- cgit v1.2.3