Skip to content

Commit

Permalink
lazylen
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexanx committed Aug 12, 2024
1 parent 3720744 commit 187ef8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions code/controllers/configuration.dm
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,9 @@
var/static/shutdown_on_reboot = FALSE
var/static/use_spreading_explosions = TRUE //Defines whether the server uses iterative or circular explosions.

var/static/iterative_explosives_z_threshold = 15
var/static/iterative_explosives_z_multiplier = 0.25
var/static/iterative_explosives_z_subtraction = 4
var/static/iterative_explosives_z_threshold = 10
var/static/iterative_explosives_z_multiplier = 0.5
var/static/iterative_explosives_z_subtraction = 2
// [/SIERRA-ADD]


Expand Down
6 changes: 3 additions & 3 deletions code/game/objects/explosion_recursive.dm
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ SUBSYSTEM_DEF(explosives)
var/search_direction
var/current_power
var/index = 1
while (index <= turf_queue.len)
while (index <= LAZYLEN(turf_queue))
current_turf = turf_queue[index]
origin_direction = dir_queue[index]
current_power = power_queue[index]
Expand All @@ -279,7 +279,7 @@ SUBSYSTEM_DEF(explosives)
current_power -= current_turf.explosion_resistance

// Attempt to shortcut on empty tiles: if a turf only has a LO on it, we don't need to check object resistance. Some turfs might not have LOs, so we need to check it actually has one.
if (current_turf.contents.len > !!current_turf.lighting_overlay)
if (LAZYLEN(current_turf.contents) > !!current_turf.lighting_overlay)
for (var/thing in current_turf)
var/atom/movable/AM = thing
if (AM.simulated && AM.explosion_resistance)
Expand Down Expand Up @@ -365,7 +365,7 @@ SUBSYSTEM_DEF(explosives)

if (T.simulated)
T.ex_act(severity)
if (T.contents.len > !!T.lighting_overlay)
if (LAZYLEN(T.contents) > !!T.lighting_overlay)
for (var/subthing in T)
var/atom/movable/AM = subthing
if (AM.simulated)
Expand Down

0 comments on commit 187ef8e

Please sign in to comment.