summaryrefslogtreecommitdiffstats
path: root/src/control/CarCtrl.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-08-19 22:34:33 +0200
committerSergeanur <s.anureev@yandex.ua>2020-08-19 22:34:33 +0200
commit827b240078132bc893963212871e2d7b6294c6a3 (patch)
tree4e2c129c0a61c3086cb911576030e43fa317332e /src/control/CarCtrl.cpp
parent2 new opcodes (diff)
parentlittle fix (diff)
downloadre3-827b240078132bc893963212871e2d7b6294c6a3.tar
re3-827b240078132bc893963212871e2d7b6294c6a3.tar.gz
re3-827b240078132bc893963212871e2d7b6294c6a3.tar.bz2
re3-827b240078132bc893963212871e2d7b6294c6a3.tar.lz
re3-827b240078132bc893963212871e2d7b6294c6a3.tar.xz
re3-827b240078132bc893963212871e2d7b6294c6a3.tar.zst
re3-827b240078132bc893963212871e2d7b6294c6a3.zip
Diffstat (limited to 'src/control/CarCtrl.cpp')
-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 cd08753d..036c947c 100644
--- a/src/control/CarCtrl.cpp
+++ b/src/control/CarCtrl.cpp
@@ -950,6 +950,10 @@ CCarCtrl::RemoveCarsIfThePoolGetsFull(void)
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 &&