From 5630194ff329f048f4c1b62cdf3d5fbee4d5148a Mon Sep 17 00:00:00 2001 From: Fazana <52551480+FazanaJ@users.noreply.github.com> Date: Tue, 7 Sep 2021 15:40:00 +0100 Subject: [PATCH 1/3] Update config.h --- include/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/config.h b/include/config.h index 730ed557..a6076b32 100644 --- a/include/config.h +++ b/include/config.h @@ -128,7 +128,7 @@ // Number of supported areas per level. #define AREA_COUNT 8 // Lightweight directional lighting engine by Fazana. Intended for giving proximity and positional pointlights to small objects. -#define PUPPYLIGHTS +//#define PUPPYLIGHTS // BUG/GAME QOL FIXES // Fix instant warp offset not working when warping across different areas From 98bc1fac825ed77d3337fd4b1ad6a1069c7f6a44 Mon Sep 17 00:00:00 2001 From: Fazana <52551480+FazanaJ@users.noreply.github.com> Date: Tue, 7 Sep 2021 15:55:34 +0100 Subject: [PATCH 2/3] Update puppylights.c --- src/game/puppylights.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/puppylights.c b/src/game/puppylights.c index 0263729a..c5620e02 100644 --- a/src/game/puppylights.c +++ b/src/game/puppylights.c @@ -9,6 +9,8 @@ but it will not be affected by environmental tinting. If you wish for an object simply set the object flag OBJ_FLAG_EMIT_LIGHT and set some values to o->puppylight. **/ +#ifdef PUPPYLIGHTS + #include #include "types.h" #include "puppylights.h" @@ -309,3 +311,5 @@ void obj_disable_light(struct Object *obj) { obj->oFlags &= ~OBJ_FLAG_EMIT_LIGHT; } + +#endif From c9cb181b4cb7d4abb1e61d30a186eb759ca516cd Mon Sep 17 00:00:00 2001 From: Fazana <52551480+FazanaJ@users.noreply.github.com> Date: Tue, 7 Sep 2021 15:56:01 +0100 Subject: [PATCH 3/3] Update puppylights.h --- src/game/puppylights.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/puppylights.h b/src/game/puppylights.h index 3c063b64..58b28402 100644 --- a/src/game/puppylights.h +++ b/src/game/puppylights.h @@ -1,5 +1,8 @@ #ifndef PUPPYLIGHTS_H #define PUPPYLIGHTS_H + +#ifdef PUPPYLIGHTS + #include "types.h" #include "command_macros_base.h" @@ -48,3 +51,4 @@ extern void set_light_properties(struct PuppyLight *light, s32 x, s32 y, s32 z, extern void puppylights_allocate(void); #endif +#endif