[FIX] Turn off autopatrol when an area is assigned (#25335)

* Turn off autopatrol when an area is assigned

* why check for true, me dumb

* missing update_icon()

* test to confirm

* overlay updating properly. Fixed and update moved to cleanbot specifically
This commit is contained in:
Deniz
2024-05-13 04:10:14 +00:00
committed by GitHub
parent 9fa5fbb3c6
commit 171729ab80
2 changed files with 2 additions and 1 deletions
@@ -696,7 +696,6 @@ Pass a positive integer as an argument to override a bot's default speed.
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//Patrol and summon code!
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -81,6 +81,7 @@
target = null
oldloc = null
area_locked = null
update_icon()
/mob/living/simple_animal/bot/cleanbot/set_custom_texts()
text_hack = "You corrupt [name]'s cleaning software."
@@ -173,6 +174,7 @@
oldloc = loc
/mob/living/simple_animal/bot/cleanbot/proc/assign_area()
auto_patrol = FALSE // Don't want autopatrol if we are area locked
if(area_locked)
area_locked = null
else