mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-26 10:03:45 +00:00
Safely change world.fps
- Added world.change_fps() proc to safely change world.fps - Its important that SStimer be informed whenever world.tick_lag or world.fps change, so always use the proc, never set the var directly!
This commit is contained in:
@@ -196,7 +196,7 @@ GLOBAL_REAL(Master, /datum/controller/master) = new
|
||||
#else
|
||||
world.sleep_offline = 1
|
||||
#endif
|
||||
world.fps = config.fps
|
||||
world.change_fps(config.fps)
|
||||
var/initialized_tod = REALTIMEOFDAY
|
||||
sleep(1)
|
||||
initializations_finished_with_no_players_logged_in = initialized_tod < REALTIMEOFDAY - 10
|
||||
|
||||
Reference in New Issue
Block a user