mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
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:
parent
5cdc130692
commit
150eb8fd7c
1 changed files with 2 additions and 3 deletions
|
@ -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,8 +3429,7 @@ static int viewtype_mirror(uint16_t & cstat, int frameOffset)
|
|||
{
|
||||
if (frameOffset > rotations / 2)
|
||||
{
|
||||
if (frameOffset < rotations)
|
||||
cstat |= 4;
|
||||
cstat |= 4;
|
||||
return rotations - frameOffset;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue