summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-23 15:40:19 +0200
committerGitHub <noreply@github.com>2020-04-23 15:40:19 +0200
commit458eb3a4f079af4c118357fb3bd0594626151e9d (patch)
tree132252b774de4ef997a1632911bf3d21160e7fd3 /src
parentMerge pull request #485 from Fire-Head/master (diff)
downloadre3-458eb3a4f079af4c118357fb3bd0594626151e9d.tar
re3-458eb3a4f079af4c118357fb3bd0594626151e9d.tar.gz
re3-458eb3a4f079af4c118357fb3bd0594626151e9d.tar.bz2
re3-458eb3a4f079af4c118357fb3bd0594626151e9d.tar.lz
re3-458eb3a4f079af4c118357fb3bd0594626151e9d.tar.xz
re3-458eb3a4f079af4c118357fb3bd0594626151e9d.tar.zst
re3-458eb3a4f079af4c118357fb3bd0594626151e9d.zip
Diffstat (limited to 'src')
-rw-r--r--src/vehicles/Vehicle.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp
index c09375cc..57c5f3af 100644
--- a/src/vehicles/Vehicle.cpp
+++ b/src/vehicles/Vehicle.cpp
@@ -1002,21 +1002,15 @@ void
DestroyVehicleAndDriverAndPassengers(CVehicle* pVehicle)
{
if (pVehicle->pDriver) {
-#ifndef FIX_BUGS
- // this just isn't fair
CDarkel::RegisterKillByPlayer(pVehicle->pDriver, WEAPONTYPE_UNIDENTIFIED);
-#endif
pVehicle->pDriver->FlagToDestroyWhenNextProcessed();
}
for (int i = 0; i < pVehicle->m_nNumMaxPassengers; i++) {
if (pVehicle->pPassengers[i]) {
-#ifndef FIX_BUGS
- // this just isn't fair
CDarkel::RegisterKillByPlayer(pVehicle->pPassengers[i], WEAPONTYPE_UNIDENTIFIED);
-#endif
pVehicle->pPassengers[i]->FlagToDestroyWhenNextProcessed();
}
}
CWorld::Remove(pVehicle);
delete pVehicle;
-} \ No newline at end of file
+}