engine.c: prevent a 64-bit multiply in dosetaspect(). DONT_BUILD.

git-svn-id: https://svn.eduke32.com/eduke32@4576 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2014-08-23 09:00:36 +00:00
parent 21b630d294
commit fb7fb403e0

View file

@ -7876,8 +7876,12 @@ static void dosetaspect(void)
radarang2[i] = (int16_t)((radarang[k]+j)>>6);
}
for (i=1; i<(int32_t)ARRAY_SIZE(distrecip); i++)
distrecip[i] = divscale20(xdimen,i);
{
EDUKE32_STATIC_ASSERT((uint64_t)MAXXDIM*(ARRAY_SIZE(distrecip)-1) <= INT32_MAX);
for (i=1; i<(int32_t)ARRAY_SIZE(distrecip); i++)
distrecip[i] = (xdimen * i)>>20;
}
nytooclose = xdimen*2100;
nytoofar = 65536*16384-1048576;