From 8814c55bfbf3f0e5f042390b13135d3f5743d130 Mon Sep 17 00:00:00 2001 From: Leo Date: Sun, 12 Nov 2017 15:40:35 -0200 Subject: [PATCH] Merge pull request #32635 from AnturK/cowardsallofthem Fixes fleeing the station message accuracy --- code/game/gamemodes/game_mode.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/game/gamemodes/game_mode.dm b/code/game/gamemodes/game_mode.dm index 26c3810b42..977804f6a9 100644 --- a/code/game/gamemodes/game_mode.dm +++ b/code/game/gamemodes/game_mode.dm @@ -464,8 +464,10 @@ text += " died" else text += " survived" - if(fleecheck && (!(ply.current.z in GLOB.station_z_levels))) - text += " while fleeing the station" + if(fleecheck) + var/turf/T = get_turf(ply.current) + if(!T || !(T.z in GLOB.station_z_levels)) + text += " while fleeing the station" if(ply.current.real_name != ply.name) text += " as [ply.current.real_name]" else