diff options
-rw-r--r-- | engines/agos/agos.cpp | 4 | ||||
-rw-r--r-- | engines/agos/items.cpp | 3 | ||||
-rw-r--r-- | engines/agos/rooms.cpp | 4 | ||||
-rw-r--r-- | engines/agos/string.cpp | 2 |
4 files changed, 6 insertions, 7 deletions
diff --git a/engines/agos/agos.cpp b/engines/agos/agos.cpp index 8ab1811d1b..a147c69a64 100644 --- a/engines/agos/agos.cpp +++ b/engines/agos/agos.cpp @@ -1899,8 +1899,8 @@ Item *AGOSEngine::derefItem(uint item) { Item *AGOSEngine::findInByClass(Item *i, int16 m) { i = derefItem(i->child); - while(i) { - if(i->classFlags & m) { + while (i) { + if (i->classFlags & m) { //_findNextPtr = derefItem(i->next); return i; } diff --git a/engines/agos/items.cpp b/engines/agos/items.cpp index e41d7732dc..e1d1220e38 100644 --- a/engines/agos/items.cpp +++ b/engines/agos/items.cpp @@ -1094,7 +1094,6 @@ void AGOSEngine::o_getChildren() { Item *i = getNextItemPtr(); if (getVarOrByte() == 1) _subjectItem = derefItem(i->child); - else _objectItem = derefItem(i->child); } @@ -3212,7 +3211,7 @@ void AGOSEngine::stopAnimateSimon2(uint a, uint b) { int16 AGOSEngine::levelOf(Item *item) { SubPlayer *p = (SubPlayer *) findChildOfType(item, 3); - if(p == NULL) + if (p == NULL) return 0; return p->level; diff --git a/engines/agos/rooms.cpp b/engines/agos/rooms.cpp index b49d821af1..6b9407cdfe 100644 --- a/engines/agos/rooms.cpp +++ b/engines/agos/rooms.cpp @@ -164,7 +164,7 @@ void AGOSEngine::setDoorState(Item *i, uint16 d, uint16 n) { d = getBackExit(d); d1 = d; y = 0; - while(d > y) { + while (d > y) { if (getDoorState(j, y) == 0) d1--; y++; @@ -268,7 +268,7 @@ void AGOSEngine::moveDirn_ww(Item *i, uint x) { if (d) { n = getDoorState(derefItem(i->parent), x); if (n == 1) { - if(!canPlace(i, d)) + if (!canPlace(i, d)) setItemParent(i, d); } } diff --git a/engines/agos/string.cpp b/engines/agos/string.cpp index 63ed36e099..b0047eb3dd 100644 --- a/engines/agos/string.cpp +++ b/engines/agos/string.cpp @@ -667,7 +667,7 @@ void AGOSEngine::printBox() { loadSprite(3, 1, 100, 0, 0, 0); changeWindow(5); - switch(BoxSize) { + switch (BoxSize) { case 1: _textWindow->x = 10; _textWindow->y = 163; _textWindow->width = 20; |