Remove goal message during live join which can't be dismissed

This commit is contained in:
Benau 2020-07-26 12:39:09 +08:00
parent 78b13eeedf
commit f3640d4896

View File

@ -655,7 +655,7 @@ void SoccerWorld::handlePlayerGoalFromServer(const NetworkString& ns)
// May happen if this message is added when spectate started // May happen if this message is added when spectate started
if (time > 3.0f) if (time > 3.0f)
time = 3.0f; time = 3.0f;
if (m_race_gui) if (m_race_gui && !isStartPhase())
{ {
m_race_gui->addMessage(msg, NULL, time, m_race_gui->addMessage(msg, NULL, time,
video::SColor(255, 255, 0, 255), /*important*/true, video::SColor(255, 255, 0, 255), /*important*/true,