summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bossMegaGoomba.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bossMegaGoomba.cpp b/src/bossMegaGoomba.cpp
index 00a8119..d70f6cd 100644
--- a/src/bossMegaGoomba.cpp
+++ b/src/bossMegaGoomba.cpp
@@ -625,6 +625,7 @@ void daMegaGoomba_c::endState_Turn() {
void daMegaGoomba_c::beginState_Walk() {
//inline this piece of code
this->direction = dSprite_c__getXDirectionOfFurthestPlayerRelativeToVEC3(this, this->pos);
+ OSReport("Direction: %d\n", this->direction);
this->speed.x = this->speed.z = 0.0;
this->max_speed.x = (this->direction) ? -this->XSpeed : this->XSpeed;
this->speed.y = -4.0;
@@ -650,6 +651,11 @@ void daMegaGoomba_c::executeState_Walk() {
this->doStateChange(&StateID_Turn);
//this->acState.setField10ToOne();
}
+ u32 bitfield2 = *(u32*)(this->classAt1EC+0xb0+(4-(this->direction*4)));
+ if(bitfield2) {
+ OSReport("Found wall: %08x\n", bitfield2);
+ this->doStateChange(&StateID_Turn);
+ }
DoStuffAndMarkDead(this, this->pos, 1.0);
if(this->animationChr.isAnimationDone()) {