From ec11b9268fb78ef583390af93133c0e676b772de Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 2 Mar 2024 03:33:26 +0100 Subject: [PATCH] did not mean to commit this lul --- src/tables.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/tables.c b/src/tables.c index 64ce8e3ce..41520b4dc 100644 --- a/src/tables.c +++ b/src/tables.c @@ -407,9 +407,10 @@ void FV3_Rotate(vector3_t *rotVec, const vector3_t *axisVec, const angle_t angle rotVec->z = az+dz+ez; } -#define M(row,col) dest->m[row * 4 + col] -matrix_t *FM_Rotate(matrix_t *dest, angle_t angle, fixed_t x, fixed_t y, fixed_t z) + +void FM_Rotate(matrix_t *dest, angle_t angle, fixed_t x, fixed_t y, fixed_t z) { +#define M(row,col) dest->m[row * 4 + col] const fixed_t sinA = FINESINE(angle>>ANGLETOFINESHIFT); const fixed_t cosA = FINECOSINE(angle>>ANGLETOFINESHIFT); const fixed_t invCosA = FRACUNIT - cosA; @@ -459,6 +460,6 @@ matrix_t *FM_Rotate(matrix_t *dest, angle_t angle, fixed_t x, fixed_t y, fixed_t M(1, 3) = 0; M(2, 3) = 0; M(3, 3) = FRACUNIT; -#undef M - return dest; + #undef M } +