Added a hack to offset the shadows of sprites a bit so there's no flickering at the base of the sprite.

git-svn-id: https://svn.eduke32.com/eduke32@280 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2006-08-29 08:07:06 +00:00
parent 7394fefb54
commit 60d78a27f3

View file

@ -6363,6 +6363,16 @@ PALONLY:
//1024:tell MD2SPRITE.C to use Z-buffer hacks to hide overdraw issues
tsprite[spritesortcnt].cstat |= (512+1024);
}
else if(bpp > 8)
{
int ii;
ii = getangle(tsprite[spritesortcnt].x-ps[myconnectindex].posx,
tsprite[spritesortcnt].y-ps[myconnectindex].posy);
tsprite[spritesortcnt].x += sintable[(ii+2560)&2047]>>9;
tsprite[spritesortcnt].y += sintable[(ii+2048)&2047]>>9;
}
#endif
spritesortcnt++;
}