From: TimePath Date: Wed, 28 Mar 2018 09:17:33 +0000 (+1100) Subject: debug_text_3d_fn: rename velocity parameter X-Git-Tag: xonotic-v0.8.5~2218 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=2da9c241e331c10c4e3ada000ee3dfa445324261;p=xonotic%2Fxonotic-data.pk3dir.git debug_text_3d_fn: rename velocity parameter It does not shadow the velocity field, leading to a compile error --- diff --git a/qcsrc/common/debug.qh b/qcsrc/common/debug.qh index 7144bf3da..936f1e028 100644 --- a/qcsrc/common/debug.qh +++ b/qcsrc/common/debug.qh @@ -459,13 +459,13 @@ NET_HANDLE(debug_text_3d, bool is_new) { #define debug_text_3d_5(pos, msg, align, dur, vel) debug_text_3d_fn(pos, msg, align, dur, vel) ERASEABLE -void debug_text_3d_fn(vector pos, string msg, float align, float duration, vector velocity) { +void debug_text_3d_fn(vector pos, string msg, float align, float duration, vector vel) { WriteHeader(MSG_BROADCAST, debug_text_3d); WriteVector(MSG_BROADCAST, pos); WriteString(MSG_BROADCAST, msg); WriteFloat(MSG_BROADCAST, align); WriteFloat(MSG_BROADCAST, duration); - WriteVector(MSG_BROADCAST, velocity); + WriteVector(MSG_BROADCAST, vel); } #endif // SVQC