mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix math mistakes (24 * 60 is 1440 not 1400)
This commit is contained in:
parent
83d66a180a
commit
30251221e5
@ -565,7 +565,7 @@ impl Server {
|
|||||||
rtsim::init(&mut state);
|
rtsim::init(&mut state);
|
||||||
|
|
||||||
let server_constants = ServerConstants {
|
let server_constants = ServerConstants {
|
||||||
day_cycle_coefficient: 1400.0 / settings.day_length,
|
day_cycle_coefficient: 1440.0 / settings.day_length,
|
||||||
};
|
};
|
||||||
|
|
||||||
let this = Self {
|
let this = Self {
|
||||||
|
@ -351,7 +351,7 @@ impl<'a> System<'a> for Sys {
|
|||||||
material_stats: (*read_data.material_stats).clone(),
|
material_stats: (*read_data.material_stats).clone(),
|
||||||
ability_map: (*read_data.ability_map).clone(),
|
ability_map: (*read_data.ability_map).clone(),
|
||||||
server_constants: ServerConstants {
|
server_constants: ServerConstants {
|
||||||
day_cycle_coefficient: 1400.0 / read_data.settings.day_length
|
day_cycle_coefficient: 1440.0 / read_data.settings.day_length
|
||||||
},
|
},
|
||||||
})?;
|
})?;
|
||||||
debug!("Done initial sync with client.");
|
debug!("Done initial sync with client.");
|
||||||
|
Loading…
Reference in New Issue
Block a user