summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Automobile.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-03-29 17:43:43 +0200
committerGitHub <noreply@github.com>2020-03-29 17:43:43 +0200
commit0cbdca632fae35923d585cd791d8d8b84c93103e (patch)
treede9f8dbd0e3c06ffbb95b13c0637dfc3db3873c1 /src/vehicles/Automobile.cpp
parentMerge pull request #367 from Sergeanur/wrappers_cleanup (diff)
parentMerge branch 'master' into master (diff)
downloadre3-0cbdca632fae35923d585cd791d8d8b84c93103e.tar
re3-0cbdca632fae35923d585cd791d8d8b84c93103e.tar.gz
re3-0cbdca632fae35923d585cd791d8d8b84c93103e.tar.bz2
re3-0cbdca632fae35923d585cd791d8d8b84c93103e.tar.lz
re3-0cbdca632fae35923d585cd791d8d8b84c93103e.tar.xz
re3-0cbdca632fae35923d585cd791d8d8b84c93103e.tar.zst
re3-0cbdca632fae35923d585cd791d8d8b84c93103e.zip
Diffstat (limited to 'src/vehicles/Automobile.cpp')
-rw-r--r--src/vehicles/Automobile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp
index 8cb0cfa4..e709a87f 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -2823,13 +2823,13 @@ CAutomobile::ProcessBuoyancy(void)
if(pDriver){
pDriver->bIsInWater = true;
if(pDriver->IsPlayer() || !bWaterTight)
- pDriver->InflictDamage(nil, WEAPONTYPE_WATER, CTimer::GetTimeStep(), PEDPIECE_TORSO, 0);
+ pDriver->InflictDamage(nil, WEAPONTYPE_DROWNING, CTimer::GetTimeStep(), PEDPIECE_TORSO, 0);
}
for(i = 0; i < m_nNumMaxPassengers; i++)
if(pPassengers[i]){
pPassengers[i]->bIsInWater = true;
if(pPassengers[i]->IsPlayer() || !bWaterTight)
- pPassengers[i]->InflictDamage(nil, WEAPONTYPE_WATER, CTimer::GetTimeStep(), PEDPIECE_TORSO, 0);
+ pPassengers[i]->InflictDamage(nil, WEAPONTYPE_DROWNING, CTimer::GetTimeStep(), PEDPIECE_TORSO, 0);
}
}else
bIsInWater = false;