summaryrefslogtreecommitdiff
path: root/src/engine
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-07-21 20:40:40 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-07-21 20:40:40 +0200
commita96424cf8a90aa93edcf4e9ff11fc54800ea1b9e (patch)
treefdc97af8d5a461f17972debafd00a9b4648b40aa /src/engine
parent2cc0a6ff93b2e0dc20ba75c18ce34881bf3d9fbe (diff)
Simplified duration handling to allow longer profiling
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/constants.rs11
1 files changed, 11 insertions, 0 deletions
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;