mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Fix sintable access with raw angle value (which might be outside [0..2047])
in overhead map drawing code. git-svn-id: https://svn.eduke32.com/eduke32@2214 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
b30711586b
commit
489605ee0d
1 changed files with 1 additions and 1 deletions
|
@ -2323,7 +2323,7 @@ static void G_DrawOverheadMap(int32_t cposx, int32_t cposy, int32_t czoom, int16
|
||||||
|
|
||||||
k = spr->ang;
|
k = spr->ang;
|
||||||
cosang = sintable[(k+512)&2047];
|
cosang = sintable[(k+512)&2047];
|
||||||
sinang = sintable[k];
|
sinang = sintable[k&2047];
|
||||||
xspan = tilesizx[tilenum];
|
xspan = tilesizx[tilenum];
|
||||||
xrepeat = spr->xrepeat;
|
xrepeat = spr->xrepeat;
|
||||||
yspan = tilesizy[tilenum];
|
yspan = tilesizy[tilenum];
|
||||||
|
|
Loading…
Reference in a new issue