mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 07:32:02 +00:00
Updates code to be 510 compile compatible. Also introduces the new updates to the GOON processScheduler, which should make for better gameplay and less lag. Specially on high population.
24 lines
696 B
Plaintext
24 lines
696 B
Plaintext
/datum/controller/process/air/setup()
|
|
name = "air"
|
|
schedule_interval = 20 // every 2 seconds
|
|
start_delay = 4
|
|
|
|
if(!air_master)
|
|
air_master = new
|
|
air_master.Setup()
|
|
|
|
/datum/controller/process/air/doWork()
|
|
if(!air_processing_killed)
|
|
if(!air_master.Tick()) //Runtimed.
|
|
air_master.failed_ticks++
|
|
|
|
if(air_master.failed_ticks > 5)
|
|
world << "<SPAN CLASS='danger'>RUNTIMES IN ATMOS TICKER. Killing air simulation!</SPAN>"
|
|
world.log << "### ZAS SHUTDOWN"
|
|
|
|
message_admins("ZASALERT: Shutting down! status: [air_master.tick_progress]")
|
|
log_admin("ZASALERT: Shutting down! status: [air_master.tick_progress]")
|
|
|
|
air_processing_killed = TRUE
|
|
air_master.failed_ticks = 0
|