aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2/snail.cpp
diff options
context:
space:
mode:
authoruruk2014-05-24 09:06:22 +0200
committeruruk2014-05-24 09:06:22 +0200
commit4cf5c28fee6d71277a7ca2bea5663aa12e387a68 (patch)
treeb9b14dff2591eb7384c0204eda14157a2e9f84d3 /engines/cge2/snail.cpp
parentb82a0fa3e5f36e8b0b47ff129ad18fe93bdac225 (diff)
downloadscummvm-rg350-4cf5c28fee6d71277a7ca2bea5663aa12e387a68.tar.gz
scummvm-rg350-4cf5c28fee6d71277a7ca2bea5663aa12e387a68.tar.bz2
scummvm-rg350-4cf5c28fee6d71277a7ca2bea5663aa12e387a68.zip
CGE2: Implement snRSeq() and snSeq().
Diffstat (limited to 'engines/cge2/snail.cpp')
-rw-r--r--engines/cge2/snail.cpp10
1 files 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) {