From d921871a88baa098cdf69c3c6d832fda470c73cb Mon Sep 17 00:00:00 2001
From: Nikolay Korolev <nickvnuk@gmail.com>
Date: Tue, 28 Apr 2020 12:05:52 +0300
Subject: [PATCH] Allow keyboard controls for flying cheats

---
 src/core/ControllerConfig.cpp | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/core/ControllerConfig.cpp b/src/core/ControllerConfig.cpp
index f55568be..cba8186f 100644
--- a/src/core/ControllerConfig.cpp
+++ b/src/core/ControllerConfig.cpp
@@ -685,7 +685,15 @@ void CControllerConfigManager::AffectControllerStateOn_ButtonDown_Driving(int32
 	}
 	
 	bool isDodo = false;
-	if (FindPlayerVehicle() && (FindPlayerVehicle()->IsVehicle() && FindPlayerVehicle()->GetModelIndex() == MI_DODO))
+	if (FindPlayerVehicle() && (FindPlayerVehicle()->IsVehicle() && (
+		FindPlayerVehicle()->GetModelIndex() == MI_DODO
+#ifdef FIX_BUGS
+		|| CVehicle::bAllDodosCheat
+#ifdef ALLCARSHELI_CHEAT
+		|| bAllCarCheat
+#endif
+#endif
+		)))
 	{
 		isDodo = true;
 	}