summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Automobile.cpp
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-03-28 21:55:23 +0100
committerFire-Head <Fire-Head@users.noreply.github.com>2020-03-28 21:55:23 +0100
commit194ddc5f40835476673655bd3895f2b7fe7fee0c (patch)
tree530ef79acd32c90ce5ef5d545a04d4d09b5abfb7 /src/vehicles/Automobile.cpp
parentMerge pull request #363 from erorcun/erorcun (diff)
downloadre3-194ddc5f40835476673655bd3895f2b7fe7fee0c.tar
re3-194ddc5f40835476673655bd3895f2b7fe7fee0c.tar.gz
re3-194ddc5f40835476673655bd3895f2b7fe7fee0c.tar.bz2
re3-194ddc5f40835476673655bd3895f2b7fe7fee0c.tar.lz
re3-194ddc5f40835476673655bd3895f2b7fe7fee0c.tar.xz
re3-194ddc5f40835476673655bd3895f2b7fe7fee0c.tar.zst
re3-194ddc5f40835476673655bd3895f2b7fe7fee0c.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;