mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-23 17:31:14 +00:00
- Exhumed: Repair pilot light angle that's been broken for some time.
* Interpolate it as well 🙂.
This commit is contained in:
parent
dc857aec3d
commit
a28ca29493
1 changed files with 3 additions and 1 deletions
|
@ -46,6 +46,7 @@ Weapon WeaponInfo[] = {
|
|||
};
|
||||
|
||||
static const uint8_t nMinAmmo[] = { 0, 24, 51, 50, 1, 0, 0 };
|
||||
static float lastavel;
|
||||
int isRed = 0;
|
||||
|
||||
|
||||
|
@ -956,7 +957,8 @@ void DrawWeapons(Player* const pPlayer, double interpfrac)
|
|||
{
|
||||
if (!(pPlayer->pPlayerViewSect->Flag & kSectUnderwater))
|
||||
{
|
||||
seq_DrawPilotLightSeq(xPos, yPos, pPlayerActor->spr.Angles.Yaw.Normalized180().Degrees() * 2.);
|
||||
seq_DrawPilotLightSeq(xPos, yPos, interpolatedvalue(lastavel, pPlayer->input.avel, interpfrac) * 2.);
|
||||
lastavel = pPlayer->input.avel;
|
||||
}
|
||||
}
|
||||
else if (nWeapon == 8 || nWeapon == 9)
|
||||
|
|
Loading…
Reference in a new issue