This commit is contained in:
Benau 2018-11-25 15:10:03 +08:00
parent 940170cf61
commit 1f1734e5a7

View File

@ -157,11 +157,13 @@ public:
// Note: GO_PHASE is both: start phase and race phase
bool isStartPhase() const { return m_phase<GO_PHASE; }
// ------------------------------------------------------------------------
bool isRacePhase() const { return m_phase>=GO_PHASE &&
m_phase<FINISH_PHASE; }
bool isRacePhase() const { return (m_phase>=GO_PHASE &&
m_phase<FINISH_PHASE) ||
m_phase == GOAL_PHASE; }
// ------------------------------------------------------------------------
bool isActiveRacePhase() const { return m_phase>=GO_PHASE &&
m_phase<DELAY_FINISH_PHASE; }
bool isActiveRacePhase() const { return (m_phase>=GO_PHASE &&
m_phase<DELAY_FINISH_PHASE) ||
m_phase == GOAL_PHASE; }
// ------------------------------------------------------------------------
/** While the race menu is being displayed, m_phase is limbo, and
* m_previous_phase is finish. So we have to test this case, too. */