This commit is contained in:
VerySoft
2022-04-24 19:20:05 -04:00
parent 0d5df4b790
commit e0199775a4
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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