Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Z change fix #16651

Merged
merged 2 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading