From 79f9afb54e67b6dfc7a57d4853ebb73b24684518 Mon Sep 17 00:00:00 2001 From: DGamerL <108773801+DGamerL@users.noreply.github.com> Date: Sun, 10 Sep 2023 17:19:31 +0200 Subject: [PATCH] Ah yes, shuffle, of course (#22276) --- code/modules/mob/living/simple_animal/bot/bot.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/bot/bot.dm b/code/modules/mob/living/simple_animal/bot/bot.dm index 7b1870891cc..db9f835dd8b 100644 --- a/code/modules/mob/living/simple_animal/bot/bot.dm +++ b/code/modules/mob/living/simple_animal/bot/bot.dm @@ -469,7 +469,7 @@ Pass the desired type path itself, declaring a temporary var beforehand is not r */ /mob/living/simple_animal/bot/proc/scan(atom/scan_type, atom/old_target, scan_range = DEFAULT_SCAN_RANGE) var/final_result - for(var/scan in shuffle(view(scan_range, src))) //Search for something in range! + for(var/scan in view(scan_range, src)) //Search for something in range! var/atom/A = scan if(!istype(A, scan_type)) //Check that the thing we found is the type we want! continue //If not, keep searching!