- Duke: Fix flashing vehicle HUD when cl_syncinput 1 is set.

This commit is contained in:
Mitchell Richters 2021-01-03 09:55:25 +11:00
parent fc7dada764
commit 9b7d07df90

View file

@ -219,10 +219,7 @@ void displayweapon_r(int snum, double smoothratio)
else else
pal = sector[p->cursectnum].floorpal; pal = sector[p->cursectnum].floorpal;
if (TiltStatus >= 0) ShowMotorcycle(160-look_anghalf, 174, temp_kb, shade, 0, pal, TiltStatus*5);
ShowMotorcycle(160-look_anghalf, 174, temp_kb, shade, 0, pal, TiltStatus*5);
else if (p->TiltStatus < 0)
ShowMotorcycle(160-look_anghalf, 174, temp_kb, shade, 0, pal, TiltStatus*5+2047);
return; return;
} }
if (p->OnBoat) if (p->OnBoat)
@ -294,10 +291,7 @@ void displayweapon_r(int snum, double smoothratio)
if (temp2) if (temp2)
shade = -96; shade = -96;
if (TiltStatus >= 0) ShowBoat(160-look_anghalf, temp3, temp_kb, shade, 0, pal, TiltStatus);
ShowBoat(160-look_anghalf, temp3, temp_kb, shade, 0, pal, TiltStatus);
else if (p->TiltStatus < 0)
ShowBoat(160-look_anghalf, temp3, temp_kb, shade, 0, pal, TiltStatus+2047);
return; return;
} }