mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
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:
parent
21b630d294
commit
fb7fb403e0
1 changed files with 6 additions and 2 deletions
|
@ -7876,8 +7876,12 @@ static void dosetaspect(void)
|
||||||
radarang2[i] = (int16_t)((radarang[k]+j)>>6);
|
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;
|
nytooclose = xdimen*2100;
|
||||||
nytoofar = 65536*16384-1048576;
|
nytoofar = 65536*16384-1048576;
|
||||||
|
|
Loading…
Reference in a new issue