Fix qradarang calculation

git-svn-id: https://svn.eduke32.com/eduke32@8088 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-09-08 13:51:07 +00:00 committed by Christoph Oelckers
parent d0a3b86c77
commit 5708b36d26

View file

@ -7637,7 +7637,7 @@ static int32_t engineLoadTables(void)
radarang[1279-i] = -radarang[i]; radarang[1279-i] = -radarang[i];
for (i=0; i<5120; 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++) for (i=0; i<5120; i++)
qradarang[10239-i] = -qradarang[i]; qradarang[10239-i] = -qradarang[i];