From: Mario Date: Sat, 1 Aug 2020 23:59:46 +0000 (+1000) Subject: Remove some virtually unused macros X-Git-Tag: xonotic-v0.8.5~805 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6a4c0ef5a249752bf62b292c8386e24d7d1c3d5b;p=xonotic%2Fxonotic-data.pk3dir.git Remove some virtually unused macros --- 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;