From ce03cca29c8148a3e4c26433997ea62484ea3929 Mon Sep 17 00:00:00 2001 From: Benau Date: Sat, 13 Apr 2019 01:14:42 +0800 Subject: [PATCH] Disable music phase in no graphics mode So players can go back to lobby eariler --- src/modes/world_status.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/modes/world_status.cpp b/src/modes/world_status.cpp index d82bc32c4..b353ceb7c 100644 --- a/src/modes/world_status.cpp +++ b/src/modes/world_status.cpp @@ -348,9 +348,7 @@ void WorldStatus::updateTime(int ticks) stk_config->time2Ticks(0.2f) : stk_config->time2Ticks(1.0f); // how long to display the 'music' message - // no graphics mode goes race phase at 3 seconds; - m_race_ticks = ProfileWorld::isNoGraphics() ? - stk_config->time2Ticks(3.0f) : + m_race_ticks = stk_config->time2Ticks(stk_config->m_music_credit_time); } @@ -379,7 +377,14 @@ void WorldStatus::updateTime(int ticks) { music_manager->startMusic(); } - m_phase = MUSIC_PHASE; + // no graphics mode goes race phase now + if (ProfileWorld::isNoGraphics()) + { + m_race_ticks = -1; + m_phase = RACE_PHASE; + } + else + m_phase = MUSIC_PHASE; } break; // Now the world time starts }