aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2
diff options
context:
space:
mode:
authoruruk2014-07-24 23:13:25 +0200
committeruruk2014-07-24 23:16:12 +0200
commit42f044012720563fed5e0899097548999d5537a4 (patch)
treec8b270e8c1ac63b94e211e283e77db3b7d887ef4 /engines/cge2
parent6caee925df370a4d0b19c5ce37cbd52a91464d25 (diff)
downloadscummvm-rg350-42f044012720563fed5e0899097548999d5537a4.tar.gz
scummvm-rg350-42f044012720563fed5e0899097548999d5537a4.tar.bz2
scummvm-rg350-42f044012720563fed5e0899097548999d5537a4.zip
CGE2: Remove more unused opcodes.
Diffstat (limited to 'engines/cge2')
-rw-r--r--engines/cge2/snail.cpp8
-rw-r--r--engines/cge2/snail.h7
2 files changed, 4 insertions, 11 deletions
diff --git a/engines/cge2/snail.cpp b/engines/cge2/snail.cpp
index 5e889b2e61..e2f04cce74 100644
--- a/engines/cge2/snail.cpp
+++ b/engines/cge2/snail.cpp
@@ -37,13 +37,13 @@ namespace CGE2 {
const char *CommandHandler::_commandText[] = {
"NOP", "USE", "PAUSE", "INF", "CAVE",
"SETX", "SETY", "SETZ",
- "ADD", "SUB", "MUL", "DIV", "IF",
+ "ADD",
"FLASH", "CYCLE",
- "CLEAR", "TALK", "MOUSE",
- "MAP", "COUNT", "MIDI",
+ "CLEAR", "MOUSE",
+ "MAP", "MIDI",
".DUMMY.",
"WAIT", "HIDE", "ROOM",
- "SAY", "SOUND", "TIME", "KILL",
+ "SAY", "SOUND", "KILL",
"RSEQ", "SEQ", "SEND", "SWAP",
"KEEP", "GIVE",
"GETPOS", "GOTO", "PORT",
diff --git a/engines/cge2/snail.h b/engines/cge2/snail.h
index 48b65cb171..afe359b968 100644
--- a/engines/cge2/snail.h
+++ b/engines/cge2/snail.h
@@ -48,17 +48,11 @@ enum CommandType {
kCmdSetY, // SETX <y> <idx> :: set sprite shift in y axis
kCmdSetZ, // SETX <z> <idx> :: set sprite shift in z axis
kCmdAdd, // ADD <idx1> <idx2> :: sum vectors
- kCmdSub, // SUB <idx1> <idx2> :: subtract vectors
- kCmdMul, // MUL <idx> <nr> :: multiply vector by number
- kCmdDiv, // DIV <idx> <nr> :: divide vector by number
- kCmdIf, // IF
kCmdFlash, // FLASH -1 0|1 :: lighten whole image (on/off)
kCmdCycle, // CYCLE <cnt> :: rotate <cnt> colors from 1
kCmdClear, // CLEAR -1 0 :: clear kCmdAIL queue
- kCmdTalk, // TALK -1 0|1 :: enable speach (on/off)
kCmdMouse, // MOUSE -1 0|1 :: enable mouse (on/off)
kCmdMap, // MAP 0|1 0 :: temporarily turn off map for hero
- kCmdCount, // COUNT
kCmdMidi, // MIDI -1 <midi> :: play MIDI referenced by <midi> (-1 = off)
kCmdSpr,
@@ -68,7 +62,6 @@ enum CommandType {
kCmdRoom, // ROOM <hero> 0|1 :: additional room in pocket (no/yes)
kCmdSay, // SAY <spr> <ref> :: say text referenced by <ref>
kCmdSound, // SOUND <spr> <ref> :: play sound effect referenced by <ref>
- kCmdTime, // TIME <spr> 0 :: say current time
kCmdKill, // KILL <spr> 0 :: remove sprite
kCmdRSeq, // RSEQ <spr> <nr> :: relative jump SEQ <nr> lines
kCmdSeq, // SEQ <spr> <seq> :: jump to certain SEQ