mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 20:15:47 +01:00
Merge pull request #14395 from MrStonedOne/nomoreminus1
Removes a bunch of sleep(-1) and spawn(-1) from the code
This commit is contained in:
@@ -149,7 +149,7 @@ var/global/datum/controller/master/Master = new()
|
||||
// If we caused BYOND to miss a tick, stop processing for a bit...
|
||||
if(startingtick < world.time || start_time + 1 < world.timeofday)
|
||||
break
|
||||
sleep(-1)
|
||||
sleep(0)
|
||||
|
||||
cost = MC_AVERAGE(cost, world.timeofday - start_time)
|
||||
if(ran_subsystems)
|
||||
|
||||
@@ -485,5 +485,5 @@ var/datum/subsystem/ticker/ticker
|
||||
//map rotate chance defaults to 75% of the length of the round (in minutes)
|
||||
if (!prob((world.time/600)*config.maprotatechancedelta))
|
||||
return
|
||||
spawn(-1) //compiling a map can lock up the mc for 30 to 60 seconds if we don't spawn
|
||||
spawn(0) //compiling a map can lock up the mc for 30 to 60 seconds if we don't spawn
|
||||
maprotate()
|
||||
|
||||
Reference in New Issue
Block a user