mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
Change hardcoded defines to use bitflags (#67722)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#define FIRST_DUCT_LAYER 1
|
||||
#define SECOND_DUCT_LAYER 2
|
||||
#define THIRD_DUCT_LAYER 4
|
||||
#define FOURTH_DUCT_LAYER 8
|
||||
#define FIFTH_DUCT_LAYER 16
|
||||
#define FIRST_DUCT_LAYER (1<<0)
|
||||
#define SECOND_DUCT_LAYER (1<<1)
|
||||
#define THIRD_DUCT_LAYER (1<<2)
|
||||
#define FOURTH_DUCT_LAYER (1<<3)
|
||||
#define FIFTH_DUCT_LAYER (1<<4)
|
||||
|
||||
#define DUCT_LAYER_DEFAULT THIRD_DUCT_LAYER
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#define CABLE_LAYER_1 1
|
||||
#define CABLE_LAYER_2 2
|
||||
#define CABLE_LAYER_3 4
|
||||
#define CABLE_LAYER_1 (1<<0)
|
||||
#define CABLE_LAYER_2 (1<<1)
|
||||
#define CABLE_LAYER_3 (1<<2)
|
||||
|
||||
#define MACHINERY_LAYER_1 1
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#define CHANGETURF_DEFER_CHANGE 1
|
||||
#define CHANGETURF_IGNORE_AIR 2 // This flag prevents changeturf from gathering air from nearby turfs to fill the new turf with an approximation of local air
|
||||
#define CHANGETURF_FORCEOP 4
|
||||
#define CHANGETURF_SKIP 8 // A flag for PlaceOnTop to just instance the new turf instead of calling ChangeTurf. Used for uninitialized turfs NOTHING ELSE
|
||||
#define CHANGETURF_INHERIT_AIR 16 // Inherit air from previous turf. Implies CHANGETURF_IGNORE_AIR
|
||||
#define CHANGETURF_RECALC_ADJACENT 32 //Immediately recalc adjacent atmos turfs instead of queuing.
|
||||
#define CHANGETURF_DEFER_CHANGE (1<<0)
|
||||
#define CHANGETURF_IGNORE_AIR (1<<1) // This flag prevents changeturf from gathering air from nearby turfs to fill the new turf with an approximation of local air
|
||||
#define CHANGETURF_FORCEOP (1<<2)
|
||||
#define CHANGETURF_SKIP (1<<3) // A flag for PlaceOnTop to just instance the new turf instead of calling ChangeTurf. Used for uninitialized turfs NOTHING ELSE
|
||||
#define CHANGETURF_INHERIT_AIR (1<<4) // Inherit air from previous turf. Implies CHANGETURF_IGNORE_AIR
|
||||
#define CHANGETURF_RECALC_ADJACENT (1<<5) //Immediately recalc adjacent atmos turfs instead of queuing.
|
||||
|
||||
#define IS_OPAQUE_TURF(turf) (turf.directional_opacity == ALL_CARDINALS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user