From f6611aab7c696520d9be5dfe29303fd6e0ade0d7 Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Thu, 15 Nov 2018 20:16:59 +0200 Subject: More concise feature flags for variables --- src/engine/constants.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/engine') 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")] -- cgit v1.2.3