summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-08-25 15:47:22 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-08-25 15:47:22 +0200
commit64cef333c8b04b66806e150add1287f78f47e365 (patch)
treef371bc782b1ad934845f366451c52c3f341b4049 /src/vehicles
parentmerge (diff)
downloadre3-64cef333c8b04b66806e150add1287f78f47e365.tar
re3-64cef333c8b04b66806e150add1287f78f47e365.tar.gz
re3-64cef333c8b04b66806e150add1287f78f47e365.tar.bz2
re3-64cef333c8b04b66806e150add1287f78f47e365.tar.lz
re3-64cef333c8b04b66806e150add1287f78f47e365.tar.xz
re3-64cef333c8b04b66806e150add1287f78f47e365.tar.zst
re3-64cef333c8b04b66806e150add1287f78f47e365.zip
Diffstat (limited to 'src/vehicles')
-rw-r--r--src/vehicles/Automobile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp
index 488dcf69..581b5815 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -311,7 +311,7 @@ CAutomobile::ProcessControl(void)
}
CVisibilityPlugins::SetClumpAlpha((RpClump*)m_rwObject, clumpAlpha);
- AutoPilot.m_flag1 = false;
+ AutoPilot.m_bSlowedDownBecauseOfCars = false;
AutoPilot.m_bSlowedDownBecauseOfPeds = false;
// Set Center of Mass to make car more stable
@@ -3931,7 +3931,7 @@ void
CAutomobile::PlayHornIfNecessary(void)
{
if(AutoPilot.m_bSlowedDownBecauseOfPeds ||
- AutoPilot.m_flag1)
+ AutoPilot.m_bSlowedDownBecauseOfCars)
if(!HasCarStoppedBecauseOfLight())
PlayCarHorn();
}