Skip to content

Commit

Permalink
Fix falling into chasm on map load
Browse files Browse the repository at this point in the history
  • Loading branch information
m-dzianishchyts committed Mar 18, 2024
1 parent 156c2e9 commit c9c35af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/modules/mob/living/simple_animal/!simple_animal.dm
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,8 @@
/mob/living/simple_animal/onTransitZ(old_z, new_z)
..()
if(AIStatus == AI_Z_OFF)
SSidlenpcpool.idle_mobs_by_zlevel[old_z] -= src
var/list/idle_mobs_on_old_z = LAZYACCESS(SSidlenpcpool.idle_mobs_by_zlevel, old_z)
LAZYREMOVE(idle_mobs_on_old_z, src)
toggle_ai(initial(AIStatus))

/mob/living/simple_animal/proc/add_collar(obj/item/petcollar/P, mob/user)
Expand Down

0 comments on commit c9c35af

Please sign in to comment.