Skip to content

Commit

Permalink
Fixes a runtime with bots in closets (#10099)
Browse files Browse the repository at this point in the history
* Temporarily resolves a runtime caused by online bots in crates

* GPS says wtf
  • Loading branch information
HowToLoLu authored Nov 1, 2023
1 parent 0cd0ff6 commit 53bc472
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _maps/shuttles/emergency/emergency_corg.dmm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions code/modules/mob/living/simple_animal/bot/bot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,8 @@ Pass a positive integer as an argument to override a bot's default speed.
// given an optional turf to avoid
/mob/living/simple_animal/bot/proc/calc_path(turf/avoid)
check_bot_access()
if(!isturf(src.loc))
return
if(!is_reserved_level(z))
if(patrol_target != null)
if(z > patrol_target.z)
Expand Down

0 comments on commit 53bc472

Please sign in to comment.