Commit 20039ab 1 parent adc2872 commit 20039ab Copy full SHA for 20039ab
File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,17 @@ GLOBAL_LIST_EMPTY(station_levels_cache)
9
9
GLOBAL_VAR (station_level_z_scratch)
10
10
11
11
// Called a lot, somewhat slow, so has its own cache
12
- #define is_station_level (z ) \
12
+ #define is_station_level (z_level ) \
13
13
( \
14
+ (z_level) && ( \
14
15
( \
15
16
/* The right hand side of this guarantees that we'll have the space to fill later on, while also not failing the condition */ \
16
- (GLOB . station_levels_cache. len < (GLOB . station_level_z_scratch = z ) && (GLOB . station_levels_cache. len = GLOB . station_level_z_scratch)) \
17
+ (GLOB . station_levels_cache. len < (GLOB . station_level_z_scratch = (z_level) ) && (GLOB . station_levels_cache. len = GLOB . station_level_z_scratch)) \
17
18
|| isnull(GLOB . station_levels_cache[GLOB . station_level_z_scratch]) \
18
19
) \
19
- ? (GLOB . station_levels_cache[GLOB . station_level_z_scratch] = !! SSmapping. level_trait(z , ZTRAIT_STATION )) \
20
+ ? (GLOB . station_levels_cache[GLOB . station_level_z_scratch] = !! SSmapping. level_trait(GLOB . station_level_z_scratch , ZTRAIT_STATION )) \
20
21
: GLOB . station_levels_cache[GLOB . station_level_z_scratch] \
22
+ ) \
21
23
)
22
24
23
25
#define is_mining_level (z ) SSmapping. level_trait(z, ZTRAIT_MINING )
You can’t perform that action at this time.
0 commit comments