From 89f37cc8b706c7473fcbe61da4474bc087cdd296 Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Thu, 15 Mar 2018 07:20:25 -0500 Subject: [PATCH] [MIRROR] Fixes broken bot icons (#5952) * Merge pull request #36379 from ShizCalev/bot-icon-fixes Fixes broken bot icons * Fixes broken bot icons --- code/modules/mob/living/simple_animal/bot/bot.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/bot/bot.dm b/code/modules/mob/living/simple_animal/bot/bot.dm index ac48f9e6d5..91a3eeea76 100644 --- a/code/modules/mob/living/simple_animal/bot/bot.dm +++ b/code/modules/mob/living/simple_animal/bot/bot.dm @@ -968,6 +968,8 @@ Pass a positive integer as an argument to override a bot's default speed. if(newpath) for(var/i in 1 to newpath.len) var/turf/T = newpath[i] + if(T == loc) //don't bother putting an image if it's where we already exist. + continue var/direction = NORTH if(i > 1) var/turf/prevT = path[i - 1] @@ -1010,5 +1012,5 @@ Pass a positive integer as an argument to override a bot's default speed. return var/image/I = path[path[1]] if(I) - I.icon = null + I.icon_state = null path.Cut(1, 2)