Skip to content

Commit

Permalink
Fix wires swapping
Browse files Browse the repository at this point in the history
  • Loading branch information
neersighted committed Jan 27, 2016
1 parent 2b1a8c5 commit 5e2e295
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions code/datums/wires/wires.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ var/list/wire_colors = list( // http://www.crockford.com/wrrrld/color.html
"aqua",
"aquamarine",
"beige",
"black",
"blanchedalmond",
"blue",
"blueviolet",
Expand Down Expand Up @@ -154,12 +153,11 @@ var/list/wire_color_directory = list()
if(randomize)
randomize()
else
var/list/global_colors = wire_color_directory[holder_type]
if(!wire_color_directory[holder_type])
randomize()
global_colors = colors.Copy()
wire_color_directory[holder_type] = colors
else
colors = global_colors.Copy()
colors = wire_color_directory[holder_type]

/datum/wires/Destroy()
holder = null
Expand Down

0 comments on commit 5e2e295

Please sign in to comment.