diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-08-09 22:17:02 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-08-09 22:17:02 +0200 |
commit | 856a6a17aa927e95e33cffcbd178efe86ce14262 (patch) | |
tree | 09a0438257e09e768e571fdb7ae12dbc95965625 /src/engine | |
parent | 52c4dc1dd7bbe6546e0a2b3eeb4b5ec78d3fb582 (diff) |
Rearranged random move selection to avoid expensive division
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/constants.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/constants.rs b/src/engine/constants.rs index 2e80988..458251f 100644 --- a/src/engine/constants.rs +++ b/src/engine/constants.rs @@ -28,7 +28,7 @@ pub const ENERGY_CONSTRUCTION_TIME: u8 = 1; pub const DECONSTRUCT_ENERGY: u16 = 5; -pub const MAX_CONCURRENT_CONSTRUCTION: usize = 5; //2 teslas, and 3 of anything else +pub const MAX_CONCURRENT_CONSTRUCTION: usize = 6; //2 teslas, and 3 of anything else, 1 extra because it's push here then update construction times #[cfg(not(feature = "reduced-time"))] |