From d0a9834f396dafc1f8c9e7cbeedc1d8b66e3f2a2 Mon Sep 17 00:00:00 2001 From: Fazana <52551480+FazanaJ@users.noreply.github.com> Date: Mon, 27 Sep 2021 21:17:10 +0100 Subject: [PATCH 1/2] E --- include/config.h | 2 +- src/game/shadow.c | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/include/config.h b/include/config.h index 7665ea0c..ce8e5278 100644 --- a/include/config.h +++ b/include/config.h @@ -170,7 +170,7 @@ #define KOOPA_KEEP_PINK_SHORTS // Lightweight directional lighting engine by Fazana. Intended for giving proximity and positional pointlights to small objects. // NOTE: Stil breaks occasionally, and PUPPYLIGHT_NODE doesn't work in areas that aren't area 1. -//#define PUPPYLIGHTS +#define PUPPYLIGHTS // -- AUDIO SETTINGS -- // Fixes the castle music sometimes triggering after getting a dialog diff --git a/src/game/shadow.c b/src/game/shadow.c index 79bb07ca..087d26a9 100644 --- a/src/game/shadow.c +++ b/src/game/shadow.c @@ -208,15 +208,7 @@ s32 init_shadow(struct Shadow *s, f32 xPos, f32 yPos, f32 zPos, s16 shadowScale, s->parentZ = zPos; - if (gCurGraphNodeObjectNode->oFloor != NULL) - { - s->floorHeight = gCurGraphNodeObjectNode->oFloorHeight; - floor = gCurGraphNodeObjectNode->oFloor; - } - else - { - s->floorHeight = find_floor(s->parentX, s->parentY, s->parentZ, &floor); - } + s->floorHeight = find_floor(s->parentX, s->parentY, s->parentZ, &floor); waterLevel = get_water_level_below_shadow(s, &waterFloor); From f0bd8a1fa599655412504da159e1d2c0b767a548 Mon Sep 17 00:00:00 2001 From: Fazana <52551480+FazanaJ@users.noreply.github.com> Date: Mon, 27 Sep 2021 21:21:20 +0100 Subject: [PATCH 2/2] I hate github I hate github I hate github I hate github I hate github I hate github --- include/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/config.h b/include/config.h index ce8e5278..7665ea0c 100644 --- a/include/config.h +++ b/include/config.h @@ -170,7 +170,7 @@ #define KOOPA_KEEP_PINK_SHORTS // Lightweight directional lighting engine by Fazana. Intended for giving proximity and positional pointlights to small objects. // NOTE: Stil breaks occasionally, and PUPPYLIGHT_NODE doesn't work in areas that aren't area 1. -#define PUPPYLIGHTS +//#define PUPPYLIGHTS // -- AUDIO SETTINGS -- // Fixes the castle music sometimes triggering after getting a dialog