diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-11-15 20:16:59 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-11-15 20:16:59 +0200 |
commit | f6611aab7c696520d9be5dfe29303fd6e0ade0d7 (patch) | |
tree | 9fd7ee2ab645992b123fbe67e721fb95bee6470d | |
parent | c4a76b78662b5db6ed894759513d09576f57adc7 (diff) |
More concise feature flags for variables
-rw-r--r-- | src/engine/constants.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/engine/constants.rs b/src/engine/constants.rs index 951a756..a66c9e1 100644 --- a/src/engine/constants.rs +++ b/src/engine/constants.rs @@ -42,9 +42,7 @@ pub const NUMBER_OF_BUILDING_TYPES: usize = 4; pub const NUMBER_OF_MAP_POSITIONS: usize = SINGLE_MAP_WIDTH as usize * MAP_HEIGHT as usize; pub const NUMBER_OF_POSSIBLE_MOVES: usize = NUMBER_OF_MAP_POSITIONS * NUMBER_OF_BUILDING_TYPES + 2; - -#[cfg(not(feature = "reduced-time"))] -#[cfg(not(feature = "extended-time"))] +#[cfg(not(any(feature = "reduced-time", feature = "extended-time")))] pub const MAX_TIME_MILLIS: i64 = 1950; #[cfg(feature = "reduced-time")] |