PCExhumed: Fixed player view not centring when the Ramses Head appears.

This commit is contained in:
sirlemonhead 2020-01-23 21:58:49 +00:00 committed by Christoph Oelckers
parent d044b2a605
commit ccfefaa9be

View file

@ -1177,8 +1177,11 @@ void FuncPlayer(int pA, int nDamage, int nRun)
if (nTotalPlayers <= 1) if (nTotalPlayers <= 1)
{ {
PlayerList[nPlayer].q16angle = fix16_from_int(GetAngleToSprite(nPlayerSprite, nSpiritSprite) & kAngleMask); PlayerList[nPlayer].q16angle = fix16_from_int(GetAngleToSprite(nPlayerSprite, nSpiritSprite) & kAngleMask);
PlayerList[nPlayer].q16oangle = PlayerList[nPlayer].q16angle;
sprite[nPlayerSprite].ang = fix16_to_int(PlayerList[nPlayer].q16angle); sprite[nPlayerSprite].ang = fix16_to_int(PlayerList[nPlayer].q16angle);
PlayerList[nPlayer].q16ohoriz = PlayerList[nPlayer].q16horiz = nVertPan[nPlayer] = F16(92);
lPlayerXVel = 0; lPlayerXVel = 0;
lPlayerYVel = 0; lPlayerYVel = 0;