aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/snail.cpp
diff options
context:
space:
mode:
authorStrangerke2011-06-26 12:07:42 +0200
committerStrangerke2011-06-26 12:07:42 +0200
commita06a75b9a41fb3ef9da2c7420ee9dee257c89cca (patch)
tree94366e3dcc6063c28e045e59293af11024689637 /engines/cge/snail.cpp
parentd5fdd094294becb49ef2adf0af00c4814c6efefe (diff)
downloadscummvm-rg350-a06a75b9a41fb3ef9da2c7420ee9dee257c89cca.tar.gz
scummvm-rg350-a06a75b9a41fb3ef9da2c7420ee9dee257c89cca.tar.bz2
scummvm-rg350-a06a75b9a41fb3ef9da2c7420ee9dee257c89cca.zip
CGE: Implement ForceExt and RCrypt. Little style cleanup.
Diffstat (limited to 'engines/cge/snail.cpp')
-rw-r--r--engines/cge/snail.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/cge/snail.cpp b/engines/cge/snail.cpp
index 2b36ca4325..cc79dfcc62 100644
--- a/engines/cge/snail.cpp
+++ b/engines/cge/snail.cpp
@@ -288,7 +288,7 @@ void ContractSprite(SPRITE *spr) {
}
int FindPocket(SPRITE *spr) {
- for (int i = 0; i < POCKET_NX; i ++)
+ for (int i = 0; i < POCKET_NX; i++)
if (Pocket[i] == spr)
return i;
return -1;
@@ -346,7 +346,7 @@ void FeedSnail(SPRITE *spr, SNLIST snq) {
if (FindPocket(NULL) < 0) { // no empty pockets?
SNAIL::COM *p;
- for (p = c; p->Com != SNNEXT; p ++) { // find KEEP command
+ for (p = c; p->Com != SNNEXT; p++) { // find KEEP command
if (p->Com == SNKEEP) {
PocFul();
return;
@@ -439,7 +439,7 @@ SNAIL::~SNAIL(void) {
void SNAIL::AddCom(SNCOM com, int ref, int val, void *ptr) {
_disable();
- COM *snc = &SNList[Head ++];
+ COM *snc = &SNList[Head++];
snc->Com = com;
snc->Ref = ref;
snc->Val = val;
@@ -850,7 +850,7 @@ void SNFlash(bool on) {
DAC *pal = farnew(DAC, PAL_CNT);
if (pal) {
memcpy(pal, SysPal, PAL_SIZ);
- for (int i = 0; i < PAL_CNT; i ++) {
+ for (int i = 0; i < PAL_CNT; i++) {
register int c;
c = pal[i].R << 1;
pal[i].R = (c < 64) ? c : 63;