Skip to content

Commit

Permalink
rec explosions fix
Browse files Browse the repository at this point in the history
  • Loading branch information
volas committed Mar 19, 2023
1 parent 5a3d113 commit c0f3b91
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions code/game/objects/explosion_recursive.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var/global/list/explosion_turfs = list()
playsound(epicenter, pick(SOUNDIN_EXPLOSION), VOL_EFFECTS_MASTER, null, FALSE, null, round(power,1) )

explosion_in_progress = 1
explosion_turfs = list()
explosion_turfs// = list()

explosion_turfs[epicenter] = power

Expand Down Expand Up @@ -111,11 +111,14 @@ var/global/list/explosion_turfs = list()
CHECK_TICK

var/turf/T = get_step(src, direction)
T.explosion_spread(spread_power, direction)
if(T)
T.explosion_spread(spread_power, direction)
T = get_step(src, turn(direction,90))
T.explosion_spread(side_spread_power, turn(direction,90))
if(T)
T.explosion_spread(side_spread_power, turn(direction,90))
T = get_step(src, turn(direction,-90))
T.explosion_spread(side_spread_power, turn(direction,90))
if(T)
T.explosion_spread(side_spread_power, turn(direction,90))

/*
for(var/direction in cardinal)
Expand Down

0 comments on commit c0f3b91

Please sign in to comment.