Fix flamethrower light rotation

This commit is contained in:
nukeykt 2019-11-18 04:13:56 +09:00 committed by Christoph Oelckers
parent f445dd45d7
commit 7e7f74206d
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ extern int nLocalPlayer;
extern int lPlayerXVel;
extern int lPlayerYVel;
extern int nPlayerDAng;
extern fix16_t nPlayerDAng;
struct Player
{

View file

@ -393,7 +393,7 @@ void seq_DrawPilotLightSeq(int xOffset, int yOffset)
int x = ChunkXpos[nFrameBase] + (160 + xOffset);
int y = ChunkYpos[nFrameBase] + (100 + yOffset);
rotatesprite(x << 16, y << 16, 0x10000, (-8 * nPlayerDAng) & kAngleMask, nTile, -127, 1, 2, windowxy1.x, windowxy1.y, windowxy2.x, windowxy2.y);
rotatesprite(x << 16, y << 16, 0x10000, (-2 * fix16_to_int(nPlayerDAng)) & kAngleMask, nTile, -127, 1, 2, windowxy1.x, windowxy1.y, windowxy2.x, windowxy2.y);
nFrameBase++;
}
}