aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/goblin.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2010-05-17 22:46:53 +0000
committerJohannes Schickel2010-05-17 22:46:53 +0000
commitcbbb78d9f29672e0f78724344040a692018fa3a5 (patch)
treef332ffc27f9aff633913378ce3628536089291d6 /engines/gob/goblin.cpp
parent01070d72d39fba35ca8771055032c2b8a3f141f1 (diff)
downloadscummvm-rg350-cbbb78d9f29672e0f78724344040a692018fa3a5.tar.gz
scummvm-rg350-cbbb78d9f29672e0f78724344040a692018fa3a5.tar.bz2
scummvm-rg350-cbbb78d9f29672e0f78724344040a692018fa3a5.zip
Enforce conversion formatting on pointer casts in the DEV code.
svn-id: r49068
Diffstat (limited to 'engines/gob/goblin.cpp')
-rw-r--r--engines/gob/goblin.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/gob/goblin.cpp b/engines/gob/goblin.cpp
index 34d03d9e8c..11043df782 100644
--- a/engines/gob/goblin.cpp
+++ b/engines/gob/goblin.cpp
@@ -149,7 +149,7 @@ int16 Goblin::peekGoblin(Gob_Object *_curGob) {
ptr = _objList->pHead;
index = 0;
while (ptr != 0) {
- desc = (Gob_Object *) ptr->pData;
+ desc = (Gob_Object *)ptr->pData;
if (desc != _curGob) {
for (i = 0; i < 3; i++) {
if (desc != _goblins[i])
@@ -220,7 +220,7 @@ void Goblin::drawObjects() {
ptr = _objList->pHead;
for (ptr = _objList->pHead; ptr != 0; ptr = ptr->pNext) {
- objDesc = (Gob_Object *) ptr->pData;
+ objDesc = (Gob_Object *)ptr->pData;
if (objDesc->type == 3)
objDesc->toRedraw = 1;
@@ -229,7 +229,7 @@ void Goblin::drawObjects() {
}
for (ptr = _objList->pHead; ptr != 0; ptr = ptr->pNext) {
- objDesc = (Gob_Object *) ptr->pData;
+ objDesc = (Gob_Object *)ptr->pData;
if (objDesc->toRedraw == 0)
continue;
@@ -273,7 +273,7 @@ void Goblin::drawObjects() {
sortByOrder(_objList);
for (ptr = _objList->pHead; ptr != 0; ptr = ptr->pNext) {
- objDesc = (Gob_Object *) ptr->pData;
+ objDesc = (Gob_Object *)ptr->pData;
if (objDesc->toRedraw) {
layer =
objDesc->stateMach[objDesc->state][objDesc->
@@ -321,7 +321,7 @@ void Goblin::drawObjects() {
if ((objDesc->type == 0) && (objDesc->visible != 0)) {
for (ptr2 = _objList->pHead; ptr2 != 0; ptr2 = ptr2->pNext) {
- gobDesc2 = (Gob_Object *) ptr2->pData;
+ gobDesc2 = (Gob_Object *)ptr2->pData;
if (gobDesc2->toRedraw == 0)
continue;
@@ -357,7 +357,7 @@ void Goblin::drawObjects() {
}
for (ptr = _objList->pHead; ptr != 0; ptr = ptr->pNext) {
- objDesc = (Gob_Object *) ptr->pData;
+ objDesc = (Gob_Object *)ptr->pData;
if ((objDesc->toRedraw == 0) || (objDesc->type == 1))
continue;
@@ -417,7 +417,7 @@ void Goblin::animateObjects() {
int16 layer;
for (node = _objList->pHead; node != 0; node = node->pNext) {
- objDesc = (Gob_Object *) node->pData;
+ objDesc = (Gob_Object *)node->pData;
if ((objDesc->doAnim != 1) || (objDesc->type != 0))
continue;