From a96424cf8a90aa93edcf4e9ff11fc54800ea1b9e Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Sat, 21 Jul 2018 20:40:40 +0200 Subject: Simplified duration handling to allow longer profiling --- src/engine/constants.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/engine') diff --git a/src/engine/constants.rs b/src/engine/constants.rs index 9805f72..8453a54 100644 --- a/src/engine/constants.rs +++ b/src/engine/constants.rs @@ -27,3 +27,14 @@ pub const ENERGY_PRICE: u16 = 20; pub const ENERGY_CONSTRUCTION_TIME: u8 = 1; pub const DECONSTRUCT_ENERGY: u16 = 5; + + +#[cfg(not(feature = "reduced-time"))] +#[cfg(not(feature = "extended-time"))] +pub const MAX_TIME_MILLIS: i64 = 1950; + +#[cfg(feature = "reduced-time")] +pub const MAX_TIME_MILLIS: i64 = 950; + +#[cfg(feature = "extended-time")] +pub const MAX_TIME_MILLIS: i64 = 19950; -- cgit v1.2.3