Fix some problems with areas.

* Fire alarms and alert lighting fixed, will no longer leave behind floating chunks on lighting changes.
* Added a system to bitch about improper alert activation.
* Optimized iconupdates in areas
* Voting system added for firedoors, prevents one alarm overriding the other, optimizes too.
* Optimizations for fire alarms and general code cleanup.
This commit is contained in:
Rob Nelson
2014-03-09 20:09:37 -07:00
parent 737d5baf70
commit 7cdd86da4f
8 changed files with 113 additions and 105 deletions

View File

@@ -39,10 +39,11 @@ datum/shuttle_controller
settimeleft(SHUTTLEARRIVETIME*coeff)
online = 1
if(always_fake_recall)
fake_recall = rand(300,500) //turning on the red lights in hallways
fake_recall = rand(300,500)
//turning on the red lights in hallways
if(alert == 0)
for(var/area/A in world)
if(istype(A, /area/hallway))
if(istype(A, /area/hallway) && !A.lighting_subarea)
A.readyalert()
proc/shuttlealert(var/X)
@@ -60,7 +61,7 @@ datum/shuttle_controller
setdirection(-1)
online = 1
for(var/area/A in world)
if(istype(A, /area/hallway))
if(istype(A, /area/hallway) && !A.lighting_subarea)
A.readyreset()
return
else //makes it possible to send shuttle back.