From 93f359bfe69f70e164b3b0dade0a57bfd9069717 Mon Sep 17 00:00:00 2001 From: Colin Noga Date: Thu, 30 May 2013 17:04:54 -0500 Subject: shy guy fix, and minor hard mode tweak --- src/hardMode.s | 2 +- src/shyguy.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/hardMode.s b/src/hardMode.s index 95b6f80..aa51357 100644 --- a/src/hardMode.s +++ b/src/hardMode.s @@ -24,7 +24,7 @@ TimerAdjustments: cmpwi r10, 0 beq NoTimerAdjust - li r10, 300 + li r10, 250 slwi r10, r10, 0xC cmp r3, r10 blt NoTimerAdjust diff --git a/src/shyguy.cpp b/src/shyguy.cpp index 7e3889d..32928c0 100644 --- a/src/shyguy.cpp +++ b/src/shyguy.cpp @@ -491,7 +491,7 @@ int daShyGuy::onCreate() { this->type = this->settings >> 28 & 0xF; int baln = this->settings >> 24 & 0xF; - // this->distance = this->settings >> 12 & 0xF; + this->distance = this->settings >> 12 & 0xF; stillFalling = 0; @@ -1375,6 +1375,9 @@ bool daShyGuy::willWalkOntoSuitableGround() { SpawnEffect("Wm_en_explosion_ln", 0, &(Vec){this->pos.x, this->pos.y - 32.0, 0}, &(S16Vec){0,0,0}, &(Vec){1.0, 1.0, 1.0}); PlaySound(this, SE_PLY_BALLOON_BRAKE); + if (this->type != 8) + this-distance == 0; + type = 0; } void daShyGuy::executeState_BalloonDrop() { -- cgit v1.2.3