From: Mario Date: Fri, 17 Jan 2020 16:33:20 +0000 (+1000) Subject: Remove/disable a couple of unused misc functions X-Git-Tag: xonotic-v0.8.5~1161^2~14 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2c26e09a96035a4ea05522c3d048403f26e6a7bc;p=xonotic%2Fxonotic-data.pk3dir.git Remove/disable a couple of unused misc functions --- diff --git a/qcsrc/server/miscfunctions.qc b/qcsrc/server/miscfunctions.qc index 0cc8d7919..ffdbd027c 100644 --- a/qcsrc/server/miscfunctions.qc +++ b/qcsrc/server/miscfunctions.qc @@ -1474,24 +1474,13 @@ void follow_sameorigin(entity e, entity to) e.v_angle = e.angles - to.angles; // relative angles } +#if 0 +// TODO: unused, likely for a reason, possibly needs extensions (allow setting the new movetype as a parameter?) void unfollow_sameorigin(entity e) { set_movetype(e, MOVETYPE_NONE); } - -entity gettaginfo_relative_ent; -vector gettaginfo_relative(entity e, float tag) -{ - if (!gettaginfo_relative_ent) - { - gettaginfo_relative_ent = spawn(); - gettaginfo_relative_ent.effects = EF_NODRAW; - } - gettaginfo_relative_ent.model = e.model; - gettaginfo_relative_ent.modelindex = e.modelindex; - gettaginfo_relative_ent.frame = e.frame; - return gettaginfo(gettaginfo_relative_ent, tag); -} +#endif .string aiment_classname; .float aiment_deadflag;