mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Fix player sprite appearing on water surface
This commit is contained in:
parent
688fa2e778
commit
12fd1318d9
1 changed files with 3 additions and 0 deletions
|
@ -376,6 +376,7 @@ void DrawView(int smoothRatio)
|
||||||
|
|
||||||
int nPlayerSprite = PlayerList[nLocalPlayer].nSprite;
|
int nPlayerSprite = PlayerList[nLocalPlayer].nSprite;
|
||||||
int nPlayerOldCstat = sprite[nPlayerSprite].cstat;
|
int nPlayerOldCstat = sprite[nPlayerSprite].cstat;
|
||||||
|
int nDoppleOldCstat = sprite[nDoppleSprite[nLocalPlayer]].cstat;
|
||||||
|
|
||||||
if (nSnakeCam >= 0)
|
if (nSnakeCam >= 0)
|
||||||
{
|
{
|
||||||
|
@ -412,6 +413,7 @@ void DrawView(int smoothRatio)
|
||||||
nAngle = q16angle_interpolate16(PlayerList[nLocalPlayer].q16oangle, PlayerList[nLocalPlayer].q16angle, smoothRatio);
|
nAngle = q16angle_interpolate16(PlayerList[nLocalPlayer].q16oangle, PlayerList[nLocalPlayer].q16angle, smoothRatio);
|
||||||
|
|
||||||
sprite[nPlayerSprite].cstat |= CSTAT_SPRITE_INVISIBLE;
|
sprite[nPlayerSprite].cstat |= CSTAT_SPRITE_INVISIBLE;
|
||||||
|
sprite[nDoppleSprite[nLocalPlayer]].cstat |= CSTAT_SPRITE_INVISIBLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
nCameraa = nAngle;
|
nCameraa = nAngle;
|
||||||
|
@ -597,6 +599,7 @@ void DrawView(int smoothRatio)
|
||||||
}
|
}
|
||||||
|
|
||||||
sprite[nPlayerSprite].cstat = nPlayerOldCstat;
|
sprite[nPlayerSprite].cstat = nPlayerOldCstat;
|
||||||
|
sprite[nDoppleSprite[nLocalPlayer]].cstat = nDoppleOldCstat;
|
||||||
|
|
||||||
flash = 0;
|
flash = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue