mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 07:33:34 +01:00
Quick Fix
This fix will make my code more efficients haha git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1914 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -369,7 +369,7 @@
|
||||
|
||||
/datum/powernet/proc/merge_powernets(var/datum/powernet/P)
|
||||
// The powernet that calls this proc will consume the other powernet - Rockdtben
|
||||
if(nodes.len >= P.nodes)
|
||||
if(nodes.len >= P.nodes.len)
|
||||
nodes += P.nodes
|
||||
else
|
||||
P.nodes += nodes
|
||||
@@ -377,7 +377,7 @@
|
||||
for(var/obj/machinery/power/M in nodes)
|
||||
M.netnum = number
|
||||
|
||||
if(cables.len >= P.cables)
|
||||
if(cables.len >= P.cables.len)
|
||||
cables += P.cables
|
||||
else
|
||||
P.cables += cables
|
||||
|
||||
Reference in New Issue
Block a user