From fc7517b5822f9715fc7503acd27255b1899043eb Mon Sep 17 00:00:00 2001
From: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
Date: Sat, 21 Jun 2025 15:56:43 -0400
Subject: [PATCH] Fixes AI able to jump to saved locations while in a mech
(#29668)
---
code/datums/keybindings/ai_keybinds.dm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/code/datums/keybindings/ai_keybinds.dm b/code/datums/keybindings/ai_keybinds.dm
index ff840e3bbe0..ba8c62021c8 100644
--- a/code/datums/keybindings/ai_keybinds.dm
+++ b/code/datums/keybindings/ai_keybinds.dm
@@ -50,6 +50,10 @@
. = ..()
var/mob/living/silicon/ai/AI = C.mob
+ if(ismecha(AI.loc))
+ to_chat(AI, "You can't change camera locations while in a mech!")
+ return
+
if(AI.stored_locations[location_number] == "unset")
to_chat(AI, "You haven't set location [location_number] yet!")
return