mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user