From 9b7d07df9077aed277b71c6f92161a5799268082 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sun, 3 Jan 2021 09:55:25 +1100 Subject: [PATCH] - Duke: Fix flashing vehicle HUD when `cl_syncinput 1` is set. --- source/games/duke/src/hudweapon_r.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/source/games/duke/src/hudweapon_r.cpp b/source/games/duke/src/hudweapon_r.cpp index 933f80289..83fbdb73f 100644 --- a/source/games/duke/src/hudweapon_r.cpp +++ b/source/games/duke/src/hudweapon_r.cpp @@ -219,10 +219,7 @@ void displayweapon_r(int snum, double smoothratio) else pal = sector[p->cursectnum].floorpal; - if (TiltStatus >= 0) - 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); + ShowMotorcycle(160-look_anghalf, 174, temp_kb, shade, 0, pal, TiltStatus*5); return; } if (p->OnBoat) @@ -294,10 +291,7 @@ void displayweapon_r(int snum, double smoothratio) if (temp2) shade = -96; - if (TiltStatus >= 0) - 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); + ShowBoat(160-look_anghalf, temp3, temp_kb, shade, 0, pal, TiltStatus); return; }