From bf753d4f70c80a058d03e83577b0f7c1c62ebf5f Mon Sep 17 00:00:00 2001 From: Martin Taibr Date: Mon, 12 Nov 2018 20:51:35 +0100 Subject: [PATCH] the other FIXED_MAKE_VECTORS --- qcsrc/lib/warpzone/anglestransform.qh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/qcsrc/lib/warpzone/anglestransform.qh b/qcsrc/lib/warpzone/anglestransform.qh index 709fdf0f2..92c4671f6 100644 --- a/qcsrc/lib/warpzone/anglestransform.qh +++ b/qcsrc/lib/warpzone/anglestransform.qh @@ -19,7 +19,20 @@ a.x = -a.x; makevectors(a); } - // TODO deglobalize + #define FIXED_MAKE_VECTORS(angles, forward, right, up) MACRO_BEGIN { \ + fixedmakevectors(angles); \ + forward = v_forward; \ + right = v_right; \ + up = v_up; \ + v_forward = VEC_NAN; \ + v_right = VEC_NAN; \ + v_up = VEC_NAN; \ + } MACRO_END + #define FIXED_MAKE_VECTORS_NEW(angles, forward, right, up) \ + vector forward = '0 0 0'; \ + vector right = '0 0 0'; \ + vector up = '0 0 0'; \ + FIXED_MAKE_VECTORS(angles, forward, right, up); #define fixedvectoangles2 vectoangles2 #define fixedvectoangles vectoangles #endif -- 2.39.2