aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scenes
diff options
context:
space:
mode:
authorColin Snover2017-11-14 12:56:01 -0600
committerEugene Sandulenko2017-11-18 22:35:12 +0100
commit8e8932f38d61789c76fd03a4a01e3cb74d3dc52d (patch)
tree53ecdd07e0133709d5b8e4ae6bb22c1ef0e3debd /engines/fullpipe/scenes
parent5c89c39325f271a5ef4dcb55fbc013b3858791d5 (diff)
downloadscummvm-rg350-8e8932f38d61789c76fd03a4a01e3cb74d3dc52d.tar.gz
scummvm-rg350-8e8932f38d61789c76fd03a4a01e3cb74d3dc52d.tar.bz2
scummvm-rg350-8e8932f38d61789c76fd03a4a01e3cb74d3dc52d.zip
FULLPIPE: Remove unnecessary and illegal C-style casts
Diffstat (limited to 'engines/fullpipe/scenes')
-rw-r--r--engines/fullpipe/scenes/scene04.cpp4
-rw-r--r--engines/fullpipe/scenes/scene16.cpp2
-rw-r--r--engines/fullpipe/scenes/scene27.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/engines/fullpipe/scenes/scene04.cpp b/engines/fullpipe/scenes/scene04.cpp
index 4b5e105311..ae8e5674f7 100644
--- a/engines/fullpipe/scenes/scene04.cpp
+++ b/engines/fullpipe/scenes/scene04.cpp
@@ -275,7 +275,7 @@ void sceneHandler04_checkBigBallClick() {
if (ball)
for (uint i = 0; i < ball->_movements.size(); i++)
- ((Movement *)ball->_movements[i])->_counterMax = 73;
+ ball->_movements[i]->_counterMax = 73;
g_vars->scene04_bigBallIn = true;
}
@@ -1127,7 +1127,7 @@ void sceneHandler04_bigBallOut() {
if (ball && ball->_flags & 4)
for (uint i = 0; i < ball->_movements.size(); i++)
- ((Movement *)ball->_movements[i])->_counterMax = 0;
+ ball->_movements[i]->_counterMax = 0;
g_vars->scene04_bigBallIn = false;
}
diff --git a/engines/fullpipe/scenes/scene16.cpp b/engines/fullpipe/scenes/scene16.cpp
index b7a63dff46..04de100318 100644
--- a/engines/fullpipe/scenes/scene16.cpp
+++ b/engines/fullpipe/scenes/scene16.cpp
@@ -86,7 +86,7 @@ void scene16_initScene(Scene *sc) {
StaticANIObject *ani = new StaticANIObject(g_fp->accessScene(SC_COMMON)->getStaticANIObject1ById(ANI_BEARDED_CMN, -1));
ani->_movement = 0;
- ani->_statics = (Statics *)ani->_staticsList[0];
+ ani->_statics = ani->_staticsList[0];
sc->addStaticANIObject(ani, 1);
}
diff --git a/engines/fullpipe/scenes/scene27.cpp b/engines/fullpipe/scenes/scene27.cpp
index 7a9a25d563..171cd6d616 100644
--- a/engines/fullpipe/scenes/scene27.cpp
+++ b/engines/fullpipe/scenes/scene27.cpp
@@ -235,7 +235,7 @@ void sceneHandler27_startBat(StaticANIObject *bat) {
newbat->currX = newbat->powerCos + (double)g_fp->_aniMan->_ox + 42.0;
newbat->currY = newbat->powerSin + (double)g_fp->_aniMan->_oy + 58.0;
- bat->_statics = (Statics *)bat->_staticsList[0];
+ bat->_statics = bat->_staticsList[0];
bat->setOXY((int)newbat->currX, (int)newbat->currY);
bat->_flags |= 4;