Also fixes a more recent one

This commit is contained in:
Verkister
2022-08-25 15:53:51 +03:00
committed by GitHub
parent 50facbf850
commit 320dc916b8

View File

@@ -94,12 +94,8 @@
if(power <= 0)
return
if(src in explosion_turfs)
return
explosion_turfs |= src
if(explosion_turfs[src] >= power)
return //The turf already sustained and spread a power greated than what we are dealing with. No point spreading again.
if(explosion_turfs[src] >= power)
return //The turf already sustained and spread a power greated than what we are dealing with. No point spreading again.
explosion_turfs[src] = power
var/spread_power = power - src.explosion_resistance //This is the amount of power that will be spread to the tile in the direction of the blast