From 0216afd4a92da9042192f3523b37d93a0ed88791 Mon Sep 17 00:00:00 2001 From: Migratingcocofruit <69551563+Migratingcocofruit@users.noreply.github.com> Date: Tue, 3 Jun 2025 21:08:08 +0300 Subject: [PATCH] fixes a radiation wave runtime (#29509) --- code/datums/radiation_wave.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/radiation_wave.dm b/code/datums/radiation_wave.dm index 7d16e4aa465..fde822234f1 100644 --- a/code/datums/radiation_wave.dm +++ b/code/datums/radiation_wave.dm @@ -67,7 +67,7 @@ weight_right = index < (2 * steps) ? weights[WRAP_INDEX((index + offset), weight_length)] : 0 // The weight of the current tile the average of the weights of the tiles we checked for earlier // And is reduced by irradiating things and getting blocked - if(weight_left + weight_center + weight_right) + if(current_turf && (weight_left + weight_center + weight_right)) new_weights += radiate(source, current_turf, (ratio) * (weight_left + weight_center + weight_right) / ((1 + (index > 1 && index < (2 * steps + 1) && steps > 1) + (index > 2 && index < (2 * steps)))), emission_type) else new_weights += 0