mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-01-28 01:42:50 +00:00
pls
This commit is contained in:
@@ -42,10 +42,10 @@ GLOBAL_LIST_EMPTY(solars_list)
|
||||
unset_control() //remove from control computer
|
||||
. = ..()
|
||||
|
||||
//set the control of the panel to a given computer if closer than max_solar_distance
|
||||
//set the control of the panel to a given computer if closer than SOLAR_MAX_DIST
|
||||
/obj/machinery/power/solar/proc/set_control(var/obj/machinery/power/solar_control/SC)
|
||||
ASSERT(!control)
|
||||
if(SC && (get_dist(src, SC) > max_solar_distance))
|
||||
if(SC && (get_dist(src, SC) > SOLAR_MAX_DIST))
|
||||
return 0
|
||||
control = SC
|
||||
return 1
|
||||
|
||||
@@ -28,9 +28,9 @@
|
||||
unset_control() //remove from control computer
|
||||
..()
|
||||
|
||||
//set the control of the tracker to a given computer if closer than max_solar_distance
|
||||
//set the control of the tracker to a given computer if closer than SOLAR_MAX_DIST
|
||||
/obj/machinery/power/tracker/proc/set_control(var/obj/machinery/power/solar_control/SC)
|
||||
if(SC && (get_dist(src, SC) > max_solar_distance)) //VOREStation Edit
|
||||
if(SC && (get_dist(src, SC) > SOLAR_MAX_DIST))
|
||||
return 0
|
||||
control = SC
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user