More computer sprite fixes and central command map (#1352)

Fix solars, telescience and drop computers not having the right sprites.
Fix more zone and window related issues to central command.
This commit is contained in:
Alberyk
2016-12-31 04:17:28 +02:00
committed by skull132
parent 7ccdf4e815
commit 7a4d9fedaa
5 changed files with 26 additions and 35 deletions
+4 -4
View File
@@ -277,7 +277,7 @@ var/list/solars_list = list()
name = "solar panel control"
desc = "A controller for solar panel arrays."
icon = 'icons/obj/computer.dmi'
icon_state = "solar"
icon_state = "solar_control"
anchored = 1
density = 1
use_power = 1
@@ -289,7 +289,7 @@ var/list/solars_list = list()
var/lastgen = 0
var/track = 0 // 0= off 1=timed 2=auto (tracker)
var/trackrate = 600 // 300-900 seconds
var/nexttime = 0 // time for a panel to rotate of 1° in manual tracking
var/nexttime = 0 // time for a panel to rotate of 1° in manual tracking
var/obj/machinery/power/tracker/connected_tracker = null
var/list/connected_panels = list()
@@ -443,9 +443,9 @@ var/list/solars_list = list()
connected_tracker.unset_control()
if(track==1 && trackrate) //manual tracking and set a rotation speed
if(nexttime <= world.time) //every time we need to increase/decrease the angle by 1°...
if(nexttime <= world.time) //every time we need to increase/decrease the angle by 1°...
targetdir = (targetdir + trackrate/abs(trackrate) + 360) % 360 //... do it
nexttime += 36000/abs(trackrate) //reset the counter for the next 1°
nexttime += 36000/abs(trackrate) //reset the counter for the next 1°
updateDialog()