diff --git a/source/games/duke/src/player_r.cpp b/source/games/duke/src/player_r.cpp index 7d0d4fc00..e83b00018 100644 --- a/source/games/duke/src/player_r.cpp +++ b/source/games/duke/src/player_r.cpp @@ -1714,7 +1714,7 @@ static void onMotorcycle(int snum, ESyncBits &actions) } } - double horiz = 0; + double horiz = FRACUNIT; if (p->TurbCount) { if (p->TurbCount <= 1) @@ -1756,7 +1756,7 @@ static void onMotorcycle(int snum, ESyncBits &actions) p->VBumpTarget = 0; p->moto_bump_fast = 0; } - if (horiz != 0) + if (horiz != FRACUNIT) { p->horizon.addadjustment(horiz - FixedToFloat(p->horizon.horiz.asq16())); } @@ -2043,7 +2043,7 @@ static void onBoat(int snum, ESyncBits &actions) } } - double horiz = 0; + double horiz = FRACUNIT; if (p->TurbCount) { if (p->TurbCount <= 1) @@ -2085,7 +2085,7 @@ static void onBoat(int snum, ESyncBits &actions) p->VBumpTarget = 0; p->moto_bump_fast = 0; } - if (horiz != 0) + if (horiz != FRACUNIT) { p->horizon.addadjustment(horiz - FixedToFloat(p->horizon.horiz.asq16())); }