diff options
Diffstat (limited to '')
-rw-r--r-- | src/bossCaptainBowser.cpp | 2 | ||||
-rw-r--r-- | src/bossFuzzyBear.cpp | 2 | ||||
-rw-r--r-- | src/bossThwompaDomp.cpp | 2 | ||||
-rw-r--r-- | src/koopatlas/core.h | 3 | ||||
-rw-r--r-- | src/koopatlas/player.h | 2 | ||||
-rw-r--r-- | src/levelinfo.h | 2 | ||||
-rw-r--r-- | src/magicplatform.cpp | 8 | ||||
-rw-r--r-- | src/newer.cpp | 2 |
8 files changed, 13 insertions, 10 deletions
diff --git a/src/bossCaptainBowser.cpp b/src/bossCaptainBowser.cpp index 119779f..2c397da 100644 --- a/src/bossCaptainBowser.cpp +++ b/src/bossCaptainBowser.cpp @@ -220,7 +220,7 @@ int daCaptainBowser::onCreate() { // Normal rects are { left, top, right, bottom } // Callbacks are Touching upwards, Touching Downwards, and unknown - ShipPhysics.baseSetup(this, &ShipPhysicsCallback, 0, 0, 1, 0); + ShipPhysics.baseSetup(this, (void*)&ShipPhysicsCallback, 0, 0, 1, 0); ShipPhysics.x = 8.0; ShipPhysics.y = 20.0; diff --git a/src/bossFuzzyBear.cpp b/src/bossFuzzyBear.cpp index b9312a8..1f4fab4 100644 --- a/src/bossFuzzyBear.cpp +++ b/src/bossFuzzyBear.cpp @@ -328,7 +328,7 @@ void daFuzzyBear_c::endState_Grow() { void daFuzzyBear_c::beginState_Bounce() { - if (this->direction = 0) { this->speed.x = 1.0; } + if (this->direction == 0) { this->speed.x = 1.0; } else { this->speed.x = -1.0; } if (this->storeSpeed != 0) { this->speed.x = this->storeSpeed; } diff --git a/src/bossThwompaDomp.cpp b/src/bossThwompaDomp.cpp index 4bce47c..860fb90 100644 --- a/src/bossThwompaDomp.cpp +++ b/src/bossThwompaDomp.cpp @@ -317,7 +317,7 @@ int daEnMegaDosun_c::onDelete() { } this->puruMoveCounter--; - if(this->puruMoveCounter & 2 == 0) + if((this->puruMoveCounter & 2) == 0) return; float _array[] = {2.0, 0.0}; diff --git a/src/koopatlas/core.h b/src/koopatlas/core.h index 88efdba..ee8cf8f 100644 --- a/src/koopatlas/core.h +++ b/src/koopatlas/core.h @@ -41,6 +41,9 @@ void NewerMapDrawFunc(); class daWMPlayer_c; class dWMMap_c; +class dWMHud_c; +class dWMShop_c; +class dWMStarCoin_c; class dWorldCamera_c; class dScKoopatlas_c : public dScene_c { diff --git a/src/koopatlas/player.h b/src/koopatlas/player.h index d553afb..7b60f60 100644 --- a/src/koopatlas/player.h +++ b/src/koopatlas/player.h @@ -3,7 +3,7 @@ #include "koopatlas/core.h" #include "poweruphax.h" -#include <playeranim.h> +#include <playerAnim.h> class daWMPlayer_c : public dActor_c { diff --git a/src/levelinfo.h b/src/levelinfo.h index 1e9ee6c..d0eee1a 100644 --- a/src/levelinfo.h +++ b/src/levelinfo.h @@ -1,7 +1,7 @@ #ifndef __NEWER_LEVELINFO_H
#define __NEWER_LEVELINFO_H
-#include <common.h>
+#include <game.h>
class dLevelInfo_c {
public:
diff --git a/src/magicplatform.cpp b/src/magicplatform.cpp index e4f3dc0..420aefa 100644 --- a/src/magicplatform.cpp +++ b/src/magicplatform.cpp @@ -158,11 +158,11 @@ int daEnMagicPlatform_c::onCreate() { case Solid: physics.setup(this, 0.0f, 0.0f, fWidth, -fHeight, - &PhysCB1, &PhysCB2, &PhysCB3, 1, 0, 0); + (void*)&PhysCB1, (void*)&PhysCB2, (void*)&PhysCB3, 1, 0, 0); - physics.callback1 = &PhysCB4; - physics.callback2 = &PhysCB5; - physics.callback3 = &PhysCB6; + physics.callback1 = (void*)&PhysCB4; + physics.callback2 = (void*)&PhysCB5; + physics.callback3 = (void*)&PhysCB6; physics.addToList(); break; diff --git a/src/newer.cpp b/src/newer.cpp index dd0dc2c..7c4ce11 100644 --- a/src/newer.cpp +++ b/src/newer.cpp @@ -1,5 +1,5 @@ -#include <newer.h> #include <game.h> +#include <newer.h> void WriteAsciiToTextBox(nw4r::lyt::TextBox *tb, const char *source) { int i = 0; |