From 6a4c0ef5a249752bf62b292c8386e24d7d1c3d5b Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 2 Aug 2020 09:59:46 +1000 Subject: [PATCH] Remove some virtually unused macros --- qcsrc/common/vehicles/vehicle/raptor.qc | 2 +- qcsrc/server/defs.qh | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/qcsrc/common/vehicles/vehicle/raptor.qc b/qcsrc/common/vehicles/vehicle/raptor.qc index b2ee42e1c..6f6e85687 100644 --- a/qcsrc/common/vehicles/vehicle/raptor.qc +++ b/qcsrc/common/vehicles/vehicle/raptor.qc @@ -415,7 +415,7 @@ bool raptor_frame(entity this, float dt) bool incoming = false; IL_EACH(g_projectiles, it.enemy == vehic, { - if(MISSILE_IS_TRACKING(it)) + if(it.missile_flags & MIF_GUIDED_TRACKING) if(vdist(vehic.origin - it.origin, <, 2 * autocvar_g_vehicle_raptor_flare_range)) { incoming = true; diff --git a/qcsrc/server/defs.qh b/qcsrc/server/defs.qh index 9aebfebb5..3d1e61478 100644 --- a/qcsrc/server/defs.qh +++ b/qcsrc/server/defs.qh @@ -331,10 +331,6 @@ const int MIF_GUIDED_ALL = MIF_GUIDED_MANUAL | MIF_GUIDED_HEAT | MIF_GUIDED_LASE const int MIF_GUIDED_TRACKING = MIF_GUIDED_HEAT | MIF_GUIDED_LASER | MIF_GUIDED_AI | MIF_GUIDED_TAG; const int MIF_GUIDED_CONFUSABLE = MIF_GUIDED_HEAT | MIF_GUIDED_AI; -#define MISSILE_IS_CONFUSABLE(m) ((m.missile_flags & MIF_GUIDED_CONFUSABLE) ? true : false) -#define MISSILE_IS_GUIDED(m) ((m.missile_flags & MIF_GUIDED_ALL) ? true : false) -#define MISSILE_IS_TRACKING(m) ((m.missile_flags & MIF_GUIDED_TRACKING) ? true : false) - //// .string cvar_cl_physics; -- 2.39.2