From 6669d58ffde43b2dc1e5155d4ba2cac569dfefb6 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Tue, 20 Aug 2024 23:23:40 +0800 Subject: [PATCH] [saco] Implement/match `CVehicle::GetHydraThrusters()` --- saco/game/vehicle.cpp | 8 ++++++++ saco/game/vehicle.h | 2 ++ 2 files changed, 10 insertions(+) diff --git a/saco/game/vehicle.cpp b/saco/game/vehicle.cpp index 03f2773..772d99f 100644 --- a/saco/game/vehicle.cpp +++ b/saco/game/vehicle.cpp @@ -232,5 +232,13 @@ void CVehicle::SetHydraThrusters(DWORD dwDirection) //----------------------------------------------------------- +DWORD CVehicle::GetHydraThrusters() +{ + if(m_pVehicle) return m_pVehicle->dwHydraThrusters; + return 0UL; +} + +//----------------------------------------------------------- + //----------------------------------------------------------- diff --git a/saco/game/vehicle.h b/saco/game/vehicle.h index 02a0cb7..7a226f9 100644 --- a/saco/game/vehicle.h +++ b/saco/game/vehicle.h @@ -45,6 +45,8 @@ public: BOOL HasADriver(); void SetHydraThrusters(DWORD dwDirection); + DWORD GetHydraThrusters(); + UINT GetPassengersMax();