SOG Compat - Fix compatibility with grad trenches (__has_include) (#9189)

This commit is contained in:
PabstMirror 2023-05-01 12:40:16 -05:00 committed by GitHub
parent cd41594a60
commit fedefd5799
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 0 deletions

View File

@ -15,3 +15,18 @@
#endif
#include "\z\ace\addons\main\script_macros.hpp"
// just kept for BWC, canDig now uses GVAR(canDigSurfaces)
#define DIG_SURFACE_BLACKLIST [ \
"concrete", "concrete_exp", "concrete_int", "int_concrete", "int_concrete_exp", \
"pavement_exp", "int_pavement_exp", \
"tiling", "tiles_int", "int_tiles", \
"roof_tin", "roof_tiles", "rooftiles_exp", \
"tarmac", "asphalt_exp", \
"stones_exp", "rock", "stony", \
"metal", "gridmetal_exp", "metalplate_exp", "int_metalplate_exp", "metal_int", "wavymetal", "wavymetal_exp", "int_metal", "steel_exp", \
"lino_exp", "int_lino_exp", "int_mat_exp", \
"wood", "wood_int", "int_wood", "softwood_exp", "int_softwood_exp", "int_solidwood_exp" \
]
#define DIG_SURFACE_WHITELIST ["grass", "grasstall_exp", "forest_exp", "snow"]

View File

@ -1,3 +1,5 @@
#if __has_include("\x\grad_trenches\addons\main\config.bin")
#else
class Man;
class CAManBase: Man {
class ACE_SelfActions {
@ -18,6 +20,7 @@ class CAManBase: Man {
};
};
};
#endif
class vn_b_men_aircrew_base;
class vn_b_men_jetpilot_01: vn_b_men_aircrew_base {

View File

@ -0,0 +1 @@
preprocess = false