summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Powell <jack9267@users.noreply.github.com>2020-08-18 18:14:27 +0200
committerJack Powell <jack9267@users.noreply.github.com>2020-08-18 18:14:27 +0200
commitf09abe9ec13501d476d9277f3cfbcb098a545796 (patch)
treeea3fb516b7ad61c3cca73e1b5afb3afa21703d83 /src
parentCREATE_RANDOM_CAR_FOR_CAR_PARK is supposed to be RANDOM_VEHICLE (diff)
downloadre3-f09abe9ec13501d476d9277f3cfbcb098a545796.tar
re3-f09abe9ec13501d476d9277f3cfbcb098a545796.tar.gz
re3-f09abe9ec13501d476d9277f3cfbcb098a545796.tar.bz2
re3-f09abe9ec13501d476d9277f3cfbcb098a545796.tar.lz
re3-f09abe9ec13501d476d9277f3cfbcb098a545796.tar.xz
re3-f09abe9ec13501d476d9277f3cfbcb098a545796.tar.zst
re3-f09abe9ec13501d476d9277f3cfbcb098a545796.zip
Diffstat (limited to 'src')
-rw-r--r--src/control/CarCtrl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp
index 5db674cd..c6d90dd9 100644
--- a/src/control/CarCtrl.cpp
+++ b/src/control/CarCtrl.cpp
@@ -726,6 +726,10 @@ CCarCtrl::RemoveDistantCars()
void
CCarCtrl::PossiblyRemoveVehicle(CVehicle* pVehicle)
{
+#ifdef FIX_BUGS
+ if (pVehicle->bIsLocked)
+ return;
+#endif
CVector vecPlayerPos = FindPlayerCentreOfWorld(CWorld::PlayerInFocus);
/* BUG: this variable is initialized only in if-block below but can be used outside of it. */
if (!IsThisVehicleInteresting(pVehicle) && !pVehicle->bIsLocked &&