diff --git a/src/game/explosions.c b/src/game/explosions.c index dbd6a3807..182093c36 100644 --- a/src/game/explosions.c +++ b/src/game/explosions.c @@ -35,7 +35,7 @@ #endif struct explosion *g_Explosions; -s32 g_MaxExplosions; +s32 g_MaxExplosions = MAX_EXPLOSIONS_DEFAULT; s32 g_ExplosionShakeTotalTimer = 0; s32 g_ExplosionShakeIntensityTimer = 0; diff --git a/src/include/constants.h b/src/include/constants.h index 228645ffd..2457a7f4a 100644 --- a/src/include/constants.h +++ b/src/include/constants.h @@ -27,6 +27,7 @@ #define MAX_ROOMPROPLISTCHUNKS 256 #define MAX_SQUADRONS 16 #define MAX_TEAMS 8 +#define MAX_EXPLOSIONS_DEFAULT 6 #define NUM_BOTDIFFS 6 #define NUM_CYCLEABLE_WEAPONS 45