Skip to content

Commit

Permalink
Z change fix (#16651)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lumipharon authored Oct 9, 2024
1 parent a5c8cf9 commit 32186cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/game/atoms/atom_movable.dm
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@
*/
/atom/movable/proc/on_changed_z_level(turf/old_turf, turf/new_turf, notify_contents = TRUE)
SHOULD_CALL_PARENT(TRUE)
SEND_SIGNAL(src, COMSIG_MOVABLE_Z_CHANGED, old_turf, new_turf)
SEND_SIGNAL(src, COMSIG_MOVABLE_Z_CHANGED, old_turf?.z, new_turf?.z)

if(!notify_contents)
return
Expand Down
3 changes: 2 additions & 1 deletion code/modules/mob/living/carbon/human/human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

GLOB.human_mob_list += src
GLOB.alive_human_list += src
LAZYADD(GLOB.humans_by_zlevel["[z]"], src)
if(z)
LAZYADD(GLOB.humans_by_zlevel["[z]"], src)

for(var/action in GLOB.human_init_actions)
var/datum/action/human_action = new action(src)
Expand Down

0 comments on commit 32186cb

Please sign in to comment.