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 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 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