From 823021483353cdfcc83538522a01975ff773042a Mon Sep 17 00:00:00 2001 From: Laurence Reading Date: Wed, 15 May 2013 10:34:09 +0100 Subject: [PATCH] Fixed MULEbot pathing MULEbot was simply reversing the path before trying to follow it, Also added a null check. --- code/game/machinery/bots/mulebot.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/game/machinery/bots/mulebot.dm b/code/game/machinery/bots/mulebot.dm index c21e2554899..3496b6723a7 100644 --- a/code/game/machinery/bots/mulebot.dm +++ b/code/game/machinery/bots/mulebot.dm @@ -706,7 +706,8 @@ // given an optional turf to avoid /obj/machinery/bot/mulebot/proc/calc_path(var/turf/avoid = null) src.path = AStar(src.loc, src.target, /turf/proc/CardinalTurfsWithAccess, /turf/proc/Distance, 0, 250, id=botcard, exclude=avoid) - src.path = reverselist(src.path) + if(!src.path) + src.path = list() // sets the current destination