]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
debug_text_3d_fn: rename velocity parameter
authorTimePath <andrew.hardaker1995@gmail.com>
Wed, 28 Mar 2018 09:17:33 +0000 (20:17 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Wed, 28 Mar 2018 09:17:33 +0000 (20:17 +1100)
It does not shadow the velocity field, leading to a compile error

qcsrc/common/debug.qh

index 7144bf3da5ed6bb4166c3cc5b3f8f4895d416a7f..936f1e028857e121d97fcdc985af76011bde90e3 100644 (file)
@@ -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