From ca41f6d2c57d7bef55b68d6cf058431ceabc8372 Mon Sep 17 00:00:00 2001 From: Martin Taibr Date: Wed, 14 Nov 2018 19:21:13 +0100 Subject: [PATCH] comment before somebody gets the wrong idea --- qcsrc/lib/deglobalization.qh | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.2