aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruruk2014-07-24 23:19:02 +0200
committeruruk2014-07-24 23:19:02 +0200
commitb85e5dcfdb482b3bfa6a513537e88ccd1eb695fe (patch)
tree8763c4b87a708ae238dbdc442b61c892c11d528a
parent42f044012720563fed5e0899097548999d5537a4 (diff)
downloadscummvm-rg350-b85e5dcfdb482b3bfa6a513537e88ccd1eb695fe.tar.gz
scummvm-rg350-b85e5dcfdb482b3bfa6a513537e88ccd1eb695fe.tar.bz2
scummvm-rg350-b85e5dcfdb482b3bfa6a513537e88ccd1eb695fe.zip
CGE2: Remove kCmdDim and kCmdStep and connected code.
-rw-r--r--engines/cge2/cge2.h1
-rw-r--r--engines/cge2/snail.cpp15
-rw-r--r--engines/cge2/snail.h2
3 files changed, 0 insertions, 18 deletions
diff --git a/engines/cge2/cge2.h b/engines/cge2/cge2.h
index 0c5492f6ca..8d3f052b63 100644
--- a/engines/cge2/cge2.h
+++ b/engines/cge2/cge2.h
@@ -243,7 +243,6 @@ public:
void snReach(Sprite *spr, int val);
void snSound(Sprite *spr, int wav, Audio::Mixer::SoundType soundType = Audio::Mixer::kSFXSoundType);
void snRoom(Sprite *spr, bool on);
- void snDim(Sprite *spr, int val);
void snGhost(Bitmap *bmp);
void snSay(Sprite *spr, int val);
diff --git a/engines/cge2/snail.cpp b/engines/cge2/snail.cpp
index e2f04cce74..510dc2d514 100644
--- a/engines/cge2/snail.cpp
+++ b/engines/cge2/snail.cpp
@@ -249,9 +249,6 @@ void CommandHandler::runCommand() {
case kCmdRoom:
_vm->snRoom(spr, tailCmd._val);
break;
- case kCmdDim:
- _vm->snDim(spr, tailCmd._val);
- break;
case kCmdExec:
switch (tailCmd._cbType) {
case kQGame:
@@ -268,9 +265,6 @@ void CommandHandler::runCommand() {
break;
}
break;
- case kCmdStep:
- spr->step();
- break;
case kCmdGhost:
_vm->snGhost((Bitmap *)tailCmd._spritePtr);
break;
@@ -626,15 +620,6 @@ void CGE2Engine::snRoom(Sprite *spr, bool on) {
}
}
-void CGE2Engine::snDim(Sprite *spr, int val) {
- if (isHero(spr)) {
- if (val > 0)
- ++*(Hero*)spr;
- else if (val < 0)
- --*(Hero*)spr;
- }
-}
-
void CGE2Engine::snGhost(Bitmap *bmp) {
V2D p(this, bmp->_map & 0xFFFF, bmp->_map >> 16);
bmp->hide(p);
diff --git a/engines/cge2/snail.h b/engines/cge2/snail.h
index afe359b968..66e35dc06e 100644
--- a/engines/cge2/snail.h
+++ b/engines/cge2/snail.h
@@ -88,9 +88,7 @@ enum CommandType {
kCmdCover, // COVER <sp1> <sp2> :: cover sprite <sp1> with sprite <sp2>
kCmdUncover, // UNCOVER <sp1> <sp2> :: restore the state before COVER
- kCmdDim,
kCmdExec,
- kCmdStep,
kCmdGhost,
kCmdNOne = kNoByte