Skip to content

Commit

Permalink
1 line bug fix wow
Browse files Browse the repository at this point in the history
  • Loading branch information
FalloutFalcon committed Sep 14, 2024
1 parent 12e2edf commit c40dff3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions code/modules/mob/dead/dead.dm
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,8 @@ INITIALIZE_IMMEDIATE(/mob/dead)
return

/mob/dead/Destroy()
for(var/level in SSmobs.dead_players_by_virtual_z)
LAZYREMOVEASSOC(SSmobs.dead_players_by_virtual_z, level, src)
// Forgive me for this one. This loop can be replaced by the line below by the one brave enough to fix
// observers not cleanly removing themselves from the dead_players_by_virtual_z /list when they should
//LAZYREMOVEASSOC(SSmobs.dead_players_by_virtual_z, "[virtual_z()]", src)
//Observers should no longer be duplicating themselves across virtual z so it SHOULD be fine to only check its virtual z.
LAZYREMOVEASSOC(SSmobs.dead_players_by_virtual_z, "[virtual_z()]", src)
return ..()

/mob/dead/Login()
Expand Down

0 comments on commit c40dff3

Please sign in to comment.