Skip to content

Commit

Permalink
fix dupes
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed Sep 10, 2024
1 parent 84c6b0a commit 438c2c5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/game/machinery/fax_machine.dm
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,15 @@ GLOBAL_LIST_EMPTY(all_faxcodes)

if(!id_tag_final)
id_tag_final = "[id_tag_prefix]-[id_tag_suffix]"
if(id_tag_final in GLOB.all_faxcodes)
generate_id_tag()
return FALSE

machine_id_tag = id_tag_final
if(machine_id_tag == network)
return TRUE
GLOB.all_faxcodes += id_tag_final
return TRUE

/obj/structure/machinery/faxmachine/Destroy()
GLOB.all_faxmachines -= src
Expand Down

0 comments on commit 438c2c5

Please sign in to comment.