aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/snail.cpp
diff options
context:
space:
mode:
authorStrangerke2011-06-27 01:03:47 +0200
committerStrangerke2011-06-27 01:03:47 +0200
commit083d6ff6122cb2faf0a4330eb480bb9f77afa255 (patch)
treee8dae7dcccf1946d5df3518ff0e1221d6a881896 /engines/cge/snail.cpp
parente0673c113563ab9fc28d08c07a3bcb5c3b98fa1c (diff)
downloadscummvm-rg350-083d6ff6122cb2faf0a4330eb480bb9f77afa255.tar.gz
scummvm-rg350-083d6ff6122cb2faf0a4330eb480bb9f77afa255.tar.bz2
scummvm-rg350-083d6ff6122cb2faf0a4330eb480bb9f77afa255.zip
CGE: remove some if(n)def DEMO by using a new flag. Added CGEEngine in several classes in order to do so.
Diffstat (limited to 'engines/cge/snail.cpp')
-rw-r--r--engines/cge/snail.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/cge/snail.cpp b/engines/cge/snail.cpp
index cc79dfcc62..7325d767b4 100644
--- a/engines/cge/snail.cpp
+++ b/engines/cge/snail.cpp
@@ -424,10 +424,10 @@ const char *SNAIL::ComTxt[] = {
};
-SNAIL::SNAIL(bool turbo)
+SNAIL::SNAIL(CGEEngine *vm, bool turbo)
: Turbo(turbo), Busy(false), TextDelay(false),
Pause(0), TalkEnable(true),
- Head(0), Tail(0), SNList(farnew(COM, 256)) {
+ Head(0), Tail(0), SNList(farnew(COM, 256)), _vm(vm) {
}
@@ -907,7 +907,6 @@ static void SNMouse(bool on) {
void SNAIL::RunCom(void) {
static int count = 1;
-// extern void SwitchCave(int);
if (! Busy) {
Busy = true;
uint8 tmphea = Head;
@@ -955,13 +954,13 @@ void SNAIL::RunCom(void) {
if (sprel && TalkEnable) {
if (sprel == Hero && sprel->SeqTest(-1))
sprel->Step(HTALK);
- Say(Text->getText(snc->Val), sprel);
+ Text->Say(Text->getText(snc->Val), sprel);
Sys->FunDel = HEROFUN0;
}
break;
case SNINF :
if (TalkEnable) {
- Inf(Text->getText(snc->Val));
+ _vm->Inf(Text->getText(snc->Val));
Sys->FunDel = HEROFUN0;
}
break;