From 5708b36d261b3b7b3a1d3565ba464681710cd751 Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 8 Sep 2019 13:51:07 +0000 Subject: [PATCH] Fix qradarang calculation git-svn-id: https://svn.eduke32.com/eduke32@8088 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/build/src/engine.cpp b/source/build/src/engine.cpp index 2f472cb6d..14db5f252 100644 --- a/source/build/src/engine.cpp +++ b/source/build/src/engine.cpp @@ -7637,7 +7637,7 @@ static int32_t engineLoadTables(void) radarang[1279-i] = -radarang[i]; for (i=0; i<5120; i++) - qradarang[i] = fix16_from_float(atanf(((float)(5120-i)-0.5f) * (1.f/1024.f)) * (-64.f * (1.f/BANG2RAD))); + qradarang[i] = fix16_from_float(atanf(((float)(5120-i)-0.5f) * (1.f/1280.f)) * (-64.f * (1.f/BANG2RAD))); for (i=0; i<5120; i++) qradarang[10239-i] = -qradarang[i];