Skip to content

Commit

Permalink
Better cyclelink_helper_multi and duplicate apc logging (tgstation#67151
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Tastyfish authored May 26, 2022
1 parent 48823e2 commit 5f4eb00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions code/modules/mapping/mapping_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@
/obj/effect/mapping_helpers/airlock/cyclelink_helper_multi/payload(obj/machinery/door/airlock/airlock)
if(airlock.closeOtherId)
log_mapping("[src] at [AREACOORD(src)] tried to set [airlock] closeOtherId, but it's already set!")
else if(!cycle_id)
log_mapping("[src] at [AREACOORD(src)] doesn't have a cycle_id to assign to [airlock]!")
else
airlock.closeOtherId = cycle_id

Expand Down
2 changes: 1 addition & 1 deletion code/modules/power/apc/apc_main.dm
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@

if(area)
if(area.apc)
log_mapping("Duplicate APC created at [AREACOORD(src)]")
log_mapping("Duplicate APC created at [AREACOORD(src)]. Original at [AREACOORD(area.apc)].")
area.apc = src

update_appearance()
Expand Down

0 comments on commit 5f4eb00

Please sign in to comment.