Fix math mistakes (24 * 60 is 1440 not 1400)

This commit is contained in:
Sophia Waggoner 2023-03-22 06:19:38 -07:00
parent 83d66a180a
commit 30251221e5
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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.");