From 4cf5c28fee6d71277a7ca2bea5663aa12e387a68 Mon Sep 17 00:00:00 2001 From: uruk Date: Sat, 24 May 2014 09:06:22 +0200 Subject: CGE2: Implement snRSeq() and snSeq(). --- engines/cge2/snail.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/engines/cge2/snail.cpp b/engines/cge2/snail.cpp index ad643ac724..edbc78c7ad 100644 --- a/engines/cge2/snail.cpp +++ b/engines/cge2/snail.cpp @@ -342,11 +342,17 @@ void CGE2Engine::snMskDlg(int clr, int set) { } void CGE2Engine::snSeq(Sprite *spr, int val) { - warning("STUB: CGE2Engine::snSeq()"); + if (spr) { + if (isHero(spr) && val == 0) + ((Hero*)spr)->park(); + else + spr->step(val); + } } void CGE2Engine::snRSeq(Sprite *spr, int val) { - warning("STUB: CGE2Engine::snRSeq()"); + if (spr) + snSeq(spr, spr->_seqPtr + val); } void CGE2Engine::snSend(Sprite *spr, int val) { -- cgit v1.2.3