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:
helixhorned 2011-12-26 15:44:23 +00:00
parent b30711586b
commit 489605ee0d

View file

@ -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];