From 0b18b4140e44400d0e42c98b36c6e1167d2fad97 Mon Sep 17 00:00:00 2001 From: Kp Date: Thu, 5 Feb 2015 03:03:48 +0000 Subject: [PATCH] Switch vm_vec_scale2 back to ALU fixmuldiv uses higher precision now --- common/maths/vecmat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/maths/vecmat.cpp b/common/maths/vecmat.cpp index 4d683d00c..1c98c92fe 100644 --- a/common/maths/vecmat.cpp +++ b/common/maths/vecmat.cpp @@ -113,7 +113,7 @@ void vm_vec_scale_add2(vms_vector &dest,const vms_vector &src,fix k) //dest *= n/d void vm_vec_scale2(vms_vector &dest,fix n,fix d) { -#if 1 // DPH: Kludge: this was overflowing a lot, so I made it use the FPU. +#if 0 // DPH: Kludge: this was overflowing a lot, so I made it use the FPU. float nd; nd = f2fl(n) / f2fl(d); dest.x = fl2f( f2fl(dest.x) * nd);