More concise feature flags for variables
authorJustin Worthe <justin@worthe-it.co.za>
Thu, 15 Nov 2018 18:16:59 +0000 (20:16 +0200)
committerJustin Worthe <justin@worthe-it.co.za>
Thu, 15 Nov 2018 18:16:59 +0000 (20:16 +0200)
src/engine/constants.rs

index 951a756..a66c9e1 100644 (file)
@@ -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")]