From dc2d6a098efc3c40b40c7da8ba9d8f16b00abdd6 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sat, 29 Feb 2020 07:35:46 +0000 Subject: [PATCH] Fix mdpivxoff and mdpivyoff commands Thanks to LeoD. git-svn-id: https://svn.eduke32.com/eduke32@8643 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/mdsprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/build/src/mdsprite.cpp b/source/build/src/mdsprite.cpp index 470e9fe56..e9d223d6c 100644 --- a/source/build/src/mdsprite.cpp +++ b/source/build/src/mdsprite.cpp @@ -1625,7 +1625,7 @@ static int32_t polymost_md3draw(md3model_t *m, tspriteptr_t tspr) // PLAG: Cleaner model rotation code if (sext->pitch || sext->roll) { - float f = 1.f/(fxdimen * fviewingrange) * (256.f/(65536.f*128.f)) * (m0.x+m1.x); + float f = 1.f/((fxdimen * fviewingrange) * (256.f/(65536.f*128.f)) * (m0.x+m1.x)); Bmemset(&a0, 0, sizeof(a0)); if (sext->pivot_offset.x)