Skip to content

Commit

Permalink
Xeno leader fix
Browse files Browse the repository at this point in the history
I misunderstood how the `xeno_leader_list` works. (It isn't associative, just fixed length.)
  • Loading branch information
SabreML committed Jan 24, 2024
1 parent 0c0fe20 commit 58c0594
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions code/_onclick/hud/screen_objects.dm
Original file line number Diff line number Diff line change
Expand Up @@ -530,11 +530,8 @@
if(user.hive.hive_location)
options["Hive Core"] = list(null, TRACKER_HIVE)

for(var/leader_slot in user.hive.xeno_leader_list)
var/mob/living/carbon/xenomorph/xeno_lead = user.hive.xeno_leader_list[leader_slot]
// If there's a leader assigned to the slot.
if(xeno_lead)
options["Xeno Leader [xeno_lead]"] = list(WEAKREF(xeno_lead), TRACKER_LEADER)
for(var/mob/living/carbon/xenomorph/leader in user.hive.xeno_leader_list)
options["Xeno Leader [leader]"] = list(WEAKREF(leader), TRACKER_LEADER)

var/list/sorted_tunnels = sort_list_dist(user.hive.tunnels, get_turf(user))
for(var/obj/structure/tunnel/tunnel as anything in sorted_tunnels)
Expand Down

0 comments on commit 58c0594

Please sign in to comment.