Skip to content

Commit

Permalink
regex
Browse files Browse the repository at this point in the history
  • Loading branch information
silicons committed Sep 22, 2024
1 parent adcb64f commit 4efc13b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions code/controllers/subsystem/simple_networks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ SUBSYSTEM_DEF(simple_networks)
* * data - arbitrary list or null
*/
/datum/proc/simple_network_send(id, message, list/data)
var/list/devices = SSnetworks.get_devices(id)
var/list/devices = SSsimple_networks.get_devices(id)
for(var/datum/D as anything in devices)
D.simple_network_receive(id, message, data, src)

Expand Down Expand Up @@ -88,13 +88,13 @@ SUBSYSTEM_DEF(simple_networks)
if(. & ELEMENT_INCOMPATIBLE)
return
src.id = id
if(SSnetworks.simple_network_lookup[id])
SSnetworks.simple_network_lookup[id] |= target
if(SSsimple_networks.simple_network_lookup[id])
SSsimple_networks.simple_network_lookup[id] |= target
else
SSnetworks.simple_network_lookup[id] = list(target)
SSsimple_networks.simple_network_lookup[id] = list(target)

/datum/element/simple_network/Detach(datum/source)
SSnetworks.simple_network_lookup[id] -= source
if(!length(SSnetworks.simple_network_lookup[id]))
SSnetworks.simple_network_lookup -= id
SSsimple_networks.simple_network_lookup[id] -= source
if(!length(SSsimple_networks.simple_network_lookup[id]))
SSsimple_networks.simple_network_lookup -= id
return ..()

0 comments on commit 4efc13b

Please sign in to comment.