[MIRROR] Fixes broken bot icons (#5952)

* Merge pull request #36379 from ShizCalev/bot-icon-fixes

Fixes broken bot icons

* Fixes broken bot icons
This commit is contained in:
CitadelStationBot
2018-03-15 07:20:25 -05:00
committed by Poojawa
parent ae2541f0fb
commit 89f37cc8b7
@@ -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)