From 3b2558bb9e2abea80ed7f06cd2a893549eda5119 Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Sat, 26 Dec 2020 11:53:51 +0200 Subject: Add optimize off to fix compiler bug CBike::ProcessControl --- src/vehicles/Bike.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/vehicles') diff --git a/src/vehicles/Bike.cpp b/src/vehicles/Bike.cpp index 06cca57e..2148a1a4 100644 --- a/src/vehicles/Bike.cpp +++ b/src/vehicles/Bike.cpp @@ -205,6 +205,8 @@ float fDAxisY = 1000.0f; float fInAirXRes = 0.98f; float fFlySpeedMult = -0.6f; +#pragma optimize("", off) // a workaround for another compiler bug =P, original had optimize off for this function too though + void CBike::ProcessControl(void) { @@ -1257,6 +1259,8 @@ CBike::ProcessControl(void) } } +#pragma optimize("", on) + void CBike::Teleport(CVector pos) { -- cgit v1.2.3