summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-07-24 19:43:51 +0200
committereray orçunus <erayorcunus@gmail.com>2020-07-24 20:35:04 +0200
commit15918feb8eca09c38d7a40d67cca10cecc4affdc (patch)
tree61826572f6be8a55658a8e8e5fc73b57bf5c6c64 /src/vehicles
parentAdd ps2 audio paths (diff)
downloadre3-15918feb8eca09c38d7a40d67cca10cecc4affdc.tar
re3-15918feb8eca09c38d7a40d67cca10cecc4affdc.tar.gz
re3-15918feb8eca09c38d7a40d67cca10cecc4affdc.tar.bz2
re3-15918feb8eca09c38d7a40d67cca10cecc4affdc.tar.lz
re3-15918feb8eca09c38d7a40d67cca10cecc4affdc.tar.xz
re3-15918feb8eca09c38d7a40d67cca10cecc4affdc.tar.zst
re3-15918feb8eca09c38d7a40d67cca10cecc4affdc.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/CarGen.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/vehicles/CarGen.cpp b/src/vehicles/CarGen.cpp
index cb21b918..dd727e2b 100644
--- a/src/vehicles/CarGen.cpp
+++ b/src/vehicles/CarGen.cpp
@@ -28,7 +28,7 @@ void CCarGenerator::SwitchOff()
void CCarGenerator::SwitchOn()
{
- m_nUsesRemaining = -1;
+ m_nUsesRemaining = 255;
m_nTimer = CalcNextGen();
++CTheCarGenerators::CurrentActiveCount;
}
@@ -110,8 +110,13 @@ void CCarGenerator::DoInternalProcessing()
m_nVehicleHandle = CPools::GetVehiclePool()->GetIndex(pCar);
}
}
- if (m_nUsesRemaining < -1) /* I don't think this is a correct comparasion */
+#ifdef FIX_BUGS
+ if (m_nUsesRemaining != 0)
--m_nUsesRemaining;
+#else
+ if (m_nUsesRemaining < -1)
+ --m_nUsesRemaining;
+#endif
m_nTimer = CalcNextGen();
if (m_nUsesRemaining == 0)
--CTheCarGenerators::CurrentActiveCount;