From dfafccbf3703757d459997aae17d9a58ff30b6cb Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Tue, 20 Aug 2024 23:20:09 +0800 Subject: [PATCH] [saco] Implement/match `CVehicle::SetSirenOn(...)` --- saco/game/vehicle.cpp | 9 +++++++++ saco/game/vehicle.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/saco/game/vehicle.cpp b/saco/game/vehicle.cpp index 2a2fe08..ee72fe8 100644 --- a/saco/game/vehicle.cpp +++ b/saco/game/vehicle.cpp @@ -197,3 +197,12 @@ BOOL CVehicle::HasTurret() //----------------------------------------------------------- +void CVehicle::SetSirenOn(BYTE byteState) +{ + m_pVehicle->bSirenOn = byteState; +} + +//----------------------------------------------------------- + +//----------------------------------------------------------- + diff --git a/saco/game/vehicle.h b/saco/game/vehicle.h index d7eec54..9acf556 100644 --- a/saco/game/vehicle.h +++ b/saco/game/vehicle.h @@ -44,6 +44,8 @@ public: BOOL HasTurret(); BOOL HasADriver(); + void SetSirenOn(BYTE byteState); + void SetEngineState(BOOL bState); void LinkToInterior(int iInterior);