From: Martin Taibr Date: Wed, 14 Nov 2018 18:21:13 +0000 (+0100) Subject: comment before somebody gets the wrong idea X-Git-Tag: xonotic-v0.8.5~1258^2~33 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ca41f6d2c57d7bef55b68d6cf058431ceabc8372;p=xonotic%2Fxonotic-data.pk3dir.git comment before somebody gets the wrong idea --- diff --git a/qcsrc/lib/deglobalization.qh b/qcsrc/lib/deglobalization.qh index 96efec5fb..73c92fc03 100644 --- a/qcsrc/lib/deglobalization.qh +++ b/qcsrc/lib/deglobalization.qh @@ -18,6 +18,7 @@ #define NEW_VECS_3(forward, right, up) vector forward = '0 0 0'; vector right = '0 0 0'; vector up = '0 0 0'; #define NEW_VECS_4(forward, right, up, origin) NEW_VECS_3(forward, right, up); vector origin = '0 0 0'; +// convenience for deglobalized code - don't use these just to hide that globals are still used #define CLEAR_V_GLOBALS() v_forward = VEC_NAN; v_right = VEC_NAN; v_up = VEC_NAN; #define GET_V_GLOBALS(forward, right, up) forward = v_forward; right = v_right; up = v_up; #define SET_V_GLOBALS(forward, right, up) v_forward = forward; v_right = right; v_up = up;