aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/snail.cpp
diff options
context:
space:
mode:
authorStrangerke2011-06-18 08:54:22 +0200
committerStrangerke2011-06-18 08:54:22 +0200
commit77d5c25472f414c2b0c49a920329a6811d271281 (patch)
tree053ca79adb471e2860fe86c84aa2bec46648dd78 /engines/cge/snail.cpp
parent1ebe182ba1f707bbc10afb3626a30fed89ceb923 (diff)
downloadscummvm-rg350-77d5c25472f414c2b0c49a920329a6811d271281.tar.gz
scummvm-rg350-77d5c25472f414c2b0c49a920329a6811d271281.tar.bz2
scummvm-rg350-77d5c25472f414c2b0c49a920329a6811d271281.zip
CGE: Suppress some defines, fix semi-columns in template definitions
Diffstat (limited to 'engines/cge/snail.cpp')
-rw-r--r--engines/cge/snail.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/cge/snail.cpp b/engines/cge/snail.cpp
index b2f4648e10..382b6dbc62 100644
--- a/engines/cge/snail.cpp
+++ b/engines/cge/snail.cpp
@@ -90,8 +90,7 @@ static void SNGame(SPRITE *spr, int num) {
++ Stage;
if (hand && Stage > DRESSED)
++hand;
- if (Debug(i >= 0 ||)
- dup[i] == spr && new_random(3) == 0) {
+ if (i >= 0 || dup[i] == spr && new_random(3) == 0) {
SNPOST(SNSEQ, -1, 3, dup[0]); // yes
SNPOST(SNSEQ, -1, 3, dup[1]); // yes
SNPOST(SNSEQ, -1, 3, dup[2]); // yes
@@ -629,7 +628,7 @@ void SNCover(SPRITE *spr, int xref) {
xspr->Cave = spr->Cave;
xspr->Goto(spr->X, spr->Y);
ExpandSprite(xspr);
- if ((xspr->Flags.Shad = spr->Flags.Shad) == TRUE) {
+ if ((xspr->Flags.Shad = spr->Flags.Shad) == 1) {
VGA::ShowQ.Insert(VGA::ShowQ.Remove(spr->Prev), xspr);
spr->Flags.Shad = false;
}
@@ -643,7 +642,7 @@ void SNUncover(SPRITE *spr, SPRITE *xspr) {
spr->Flags.Hide = false;
spr->Cave = xspr->Cave;
spr->Goto(xspr->X, xspr->Y);
- if ((spr->Flags.Shad = xspr->Flags.Shad) == TRUE) {
+ if ((spr->Flags.Shad = xspr->Flags.Shad) == 1) {
VGA::ShowQ.Insert(VGA::ShowQ.Remove(xspr->Prev), spr);
xspr->Flags.Shad = false;
}