diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-03-28 21:55:23 +0100 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-03-28 21:55:23 +0100 |
commit | 194ddc5f40835476673655bd3895f2b7fe7fee0c (patch) | |
tree | 530ef79acd32c90ce5ef5d545a04d4d09b5abfb7 /src/vehicles/Automobile.cpp | |
parent | Merge pull request #363 from erorcun/erorcun (diff) | |
download | re3-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.cpp | 4 |
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; |