mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Re-add accidentally deleted ticking of Time.
This commit is contained in:
parent
30251221e5
commit
b600f08c09
@ -611,6 +611,7 @@ impl State {
|
|||||||
// Change the time accordingly.
|
// Change the time accordingly.
|
||||||
self.ecs.write_resource::<TimeOfDay>().0 +=
|
self.ecs.write_resource::<TimeOfDay>().0 +=
|
||||||
dt.as_secs_f64() * server_constants.day_cycle_coefficient;
|
dt.as_secs_f64() * server_constants.day_cycle_coefficient;
|
||||||
|
self.ecs.write_resource::<Time>().0 += dt.as_secs_f64();
|
||||||
|
|
||||||
// Update delta time.
|
// Update delta time.
|
||||||
// Beyond a delta time of MAX_DELTA_TIME, start lagging to avoid skipping
|
// Beyond a delta time of MAX_DELTA_TIME, start lagging to avoid skipping
|
||||||
|
Loading…
Reference in New Issue
Block a user