Skip to content

Commit

Permalink
AttemptedTestErrorFix1
Browse files Browse the repository at this point in the history
  • Loading branch information
Steelpoint committed Jun 25, 2023
1 parent 4a5abfa commit 1f3a9ce
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions code/game/objects/effects/landmarks/landmarks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,19 @@
GLOB.yautja_teleport_descs[T.loc.name + T.loc_to_string()] = src

/obj/effect/landmark/yautja_teleport/Destroy()
var/turf/T = get_turf(src)
GLOB.mainship_yautja_teleports -= src
GLOB.yautja_teleports -= src
GLOB.mainship_yautja_desc -= T.loc.name + T.loc_to_string()
GLOB.yautja_teleport_descs -= T.loc.name + T.loc_to_string()
return ..()
var/turf/turf = get_turf(src)
var/index = turf.loc.name + turf.loc_to_string()
if(is_mainship_level(z))
GLOB.mainship_yautja_teleports -= src
if(GLOB.mainship_yautja_desc.Find(index))
GLOB.mainship_yautja_desc[index] = null
GLOB.mainship_yautja_desc -= index
else
GLOB.yautja_teleports -= src
if(GLOB.yautja_teleport_descs.Find(index))
GLOB.yautja_teleport_descs[index] = null
GLOB.yautja_teleport_descs -= index
return ..()



Expand Down

0 comments on commit 1f3a9ce

Please sign in to comment.