Fixes AI able to jump to saved locations while in a mech (#29668)

This commit is contained in:
PollardTheDragon
2025-06-21 19:56:43 +00:00
committed by GitHub
parent c68604a51e
commit fc7517b582
+4
View File
@@ -50,6 +50,10 @@
. = ..()
var/mob/living/silicon/ai/AI = C.mob
if(ismecha(AI.loc))
to_chat(AI, "<span class='warning'>You can't change camera locations while in a mech!</span>")
return
if(AI.stored_locations[location_number] == "unset")
to_chat(AI, "<span class='warning'>You haven't set location [location_number] yet!</span>")
return