From 14db408d0bb2e7ff58da94759b701bbd8910e883 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 17 Aug 2022 17:06:36 +0200 Subject: [PATCH] [MIRROR] removes InitializeAIController(), moves it to Initialize [MDB IGNORE] (#15565) removes InitializeAIController(), moves it to Initialize Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Co-authored-by: Tom <8881105+tf-4@users.noreply.github.com> --- code/game/atoms.dm | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/code/game/atoms.dm b/code/game/atoms.dm index 2ea5fd79166..fbf9483829b 100644 --- a/code/game/atoms.dm +++ b/code/game/atoms.dm @@ -272,7 +272,8 @@ // The integrity to max_integrity ratio is still preserved. set_custom_materials(custom_materials) - InitializeAIController() + if(ispath(ai_controller)) + ai_controller = new ai_controller(src) return INITIALIZE_HINT_NORMAL @@ -1955,16 +1956,6 @@ return list() return ..() -/** -* Instantiates the AI controller of this atom. Override this if you want to assign variables first. -* -* This will work fine without manually passing arguments. - -+*/ -/atom/proc/InitializeAIController() - if(ispath(ai_controller)) - ai_controller = new ai_controller(src) - /atom/MouseEntered(location, control, params) SSmouse_entered.hovers[usr.client] = src