summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-03-29 17:51:18 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-03-29 17:51:18 +0200
commit24b8c7819c52ed09dd46d1a453dbaffd86b9e699 (patch)
tree54236602fd5bb48eea2b95ab5ccfc77d4080d3c0 /src/vehicles
parentfix (diff)
parentMerge pull request #365 from Fire-Head/master (diff)
downloadre3-24b8c7819c52ed09dd46d1a453dbaffd86b9e699.tar
re3-24b8c7819c52ed09dd46d1a453dbaffd86b9e699.tar.gz
re3-24b8c7819c52ed09dd46d1a453dbaffd86b9e699.tar.bz2
re3-24b8c7819c52ed09dd46d1a453dbaffd86b9e699.tar.lz
re3-24b8c7819c52ed09dd46d1a453dbaffd86b9e699.tar.xz
re3-24b8c7819c52ed09dd46d1a453dbaffd86b9e699.tar.zst
re3-24b8c7819c52ed09dd46d1a453dbaffd86b9e699.zip
Diffstat (limited to 'src/vehicles')
-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;