Fix a small regression with actions and improve performance while we're at it.

git-svn-id: https://svn.eduke32.com/eduke32@6313 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2017-07-05 05:37:39 +00:00
parent 5cdc130692
commit 150eb8fd7c
1 changed files with 2 additions and 3 deletions

View File

@ -3421,7 +3421,7 @@ static int G_MaybeTakeOnFloorPal(uspritetype *pSprite, int sectNum)
template <int rotations>
static int getofs_viewtype(int angDiff)
{
return (((angDiff + 3072) & 2047) * rotations + 1024) >> 11;
return ((((angDiff + 3072) & 2047) * rotations + 1024) >> 11) % rotations;
}
template <int rotations>
@ -3429,7 +3429,6 @@ static int viewtype_mirror(uint16_t & cstat, int frameOffset)
{
if (frameOffset > rotations / 2)
{
if (frameOffset < rotations)
cstat |= 4;
return rotations - frameOffset;
}