From 13f1c99e166f342ed9ebc47e7d48ffc954f89fd2 Mon Sep 17 00:00:00 2001 From: Couls Date: Thu, 15 Aug 2019 17:57:28 -0400 Subject: [PATCH] remove magic number --- code/game/turfs/simulated/walls.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/game/turfs/simulated/walls.dm b/code/game/turfs/simulated/walls.dm index b2d7966134d..114eb21e66c 100644 --- a/code/game/turfs/simulated/walls.dm +++ b/code/game/turfs/simulated/walls.dm @@ -1,5 +1,6 @@ #define WALL_DENT_HIT 1 #define WALL_DENT_SHOT 2 +#define MAX_DENT_DECALS 15 /turf/simulated/wall name = "wall" @@ -445,7 +446,7 @@ ChangeTurf(/turf/simulated/wall/cult) /turf/simulated/wall/proc/add_dent(denttype, x=rand(-8, 8), y=rand(-8, 8)) - if(LAZYLEN(dent_decals) >= 15) + if(LAZYLEN(dent_decals) >= MAX_DENT_DECALS) return var/mutable_appearance/decal = mutable_appearance('icons/effects/effects.dmi', "", BULLET_HOLE_LAYER) @@ -466,3 +467,4 @@ add_overlay(dent_decals) +#undef MAX_DENT_DECALS \ No newline at end of file