From 3d69148497d9d6415b2a67348fac4531a5952adf Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Sat, 1 Feb 2020 18:40:54 +0200 Subject: Added enum to OnscreenTimer, fixed mistakes in CCarCtrl::SteerAIBoatWithPhysicsHeadingForTarget --- src/control/OnscreenTimer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/control/OnscreenTimer.cpp') diff --git a/src/control/OnscreenTimer.cpp b/src/control/OnscreenTimer.cpp index 12aa2923..1677df06 100644 --- a/src/control/OnscreenTimer.cpp +++ b/src/control/OnscreenTimer.cpp @@ -19,7 +19,7 @@ void COnscreenTimer::Init() { m_sEntries[i].m_aCounterText[j] = 0; } - m_sEntries[i].m_nType = 0; + m_sEntries[i].m_nType = COUNTER_DISPLAY_NUMBER; m_sEntries[i].m_bTimerProcessed = 0; m_sEntries[i].m_bCounterProcessed = 0; } @@ -49,7 +49,7 @@ void COnscreenTimer::ClearCounter(uint32 offset) { if(offset == m_sEntries[i].m_nCounterOffset) { m_sEntries[i].m_nCounterOffset = 0; m_sEntries[i].m_aCounterText[0] = 0; - m_sEntries[i].m_nType = 0; + m_sEntries[i].m_nType = COUNTER_DISPLAY_NUMBER; m_sEntries[i].m_bCounterProcessed = 0; } } -- cgit v1.2.3