Fixing Borg Vision Bug

Borg vision module's wouldn't work if they were placed in the second or
third module slots. This fixes that, and a runtime error caused by
opening the inventory prior to selecting a module.
This commit is contained in:
jack-fractal
2015-06-07 21:01:38 -04:00
parent d9a456fd37
commit aa453ea99b
2 changed files with 7 additions and 6 deletions
@@ -89,7 +89,8 @@
O.layer = 20 // this bit moves the target object into the robot, and moves it's location on screen
contents += O
if(istype(O,/obj/item/borg/sight))
sight_mode |= module_state_1:sight_mode
var/obj/item/borg/sight/S = O
sight_mode |= S.sight_mode
if (selected) // replaces your selection if you're swapping
select_module(selected)