[saco] Implement/match CVehicle::SetHealth(...)

This commit is contained in:
RD42 committed 2024-08-20 23:01:30 +08:00
1 parent 91d7bff083
commit 4487d2b715
2 files changed
+10

No files matched your search

+9
View File
@@ -100,3 +100,12 @@ float CVehicle::GetHealth()
//-----------------------------------------------------------
void CVehicle::SetHealth(float fHealth)
{
if(m_pVehicle) {
m_pVehicle->fHealth = fHealth;
}
}
//-----------------------------------------------------------
+1
View File
@@ -23,6 +23,7 @@ public:
void SetLockedState(int iLocked);
float GetHealth();
void SetHealth(float fHealth);
BOOL HasADriver();