summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-01 14:02:05 +0100
committeraap <aap@papnet.eu>2021-01-01 14:02:05 +0100
commit60197c2d7e89836d1e31f9cf80cfbcea8bad8f8a (patch)
tree32df20ab58a7e47e5dbf109468135b046daa017d /src/vehicles
parentwrong bike fall off anim (diff)
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
downloadre3-60197c2d7e89836d1e31f9cf80cfbcea8bad8f8a.tar
re3-60197c2d7e89836d1e31f9cf80cfbcea8bad8f8a.tar.gz
re3-60197c2d7e89836d1e31f9cf80cfbcea8bad8f8a.tar.bz2
re3-60197c2d7e89836d1e31f9cf80cfbcea8bad8f8a.tar.lz
re3-60197c2d7e89836d1e31f9cf80cfbcea8bad8f8a.tar.xz
re3-60197c2d7e89836d1e31f9cf80cfbcea8bad8f8a.tar.zst
re3-60197c2d7e89836d1e31f9cf80cfbcea8bad8f8a.zip
Diffstat (limited to 'src/vehicles')
-rw-r--r--src/vehicles/Vehicle.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp
index 56de3562..325eb160 100644
--- a/src/vehicles/Vehicle.cpp
+++ b/src/vehicles/Vehicle.cpp
@@ -1914,7 +1914,10 @@ CVehicle::AddPassenger(CPed *passenger, uint8 n)
void
CVehicle::RemoveDriver(void)
{
- SetStatus(STATUS_ABANDONED);
+#ifdef FIX_BUGS
+ if (GetStatus() != STATUS_WRECKED)
+#endif
+ SetStatus(STATUS_ABANDONED);
if(pDriver == FindPlayerPed()){
if(GetModelIndex() == MI_POLICE && CStreaming::HasModelLoaded(MI_SHOTGUN)){
if(bFreebies){