Don't flood with wrong way message.

It fixes #3427.
This commit is contained in:
Deve
2018-10-11 21:36:09 +02:00
parent 3725013135
commit 35f6e465bc

View File

@@ -276,7 +276,10 @@ void LinearWorld::updateGraphics(float dt)
m_last_lap_sfx_playing = false;
}
if (!GUIEngine::ModalDialog::isADialogActive())
const GUIEngine::GameState gamestate = StateManager::get()->getGameState();
if (gamestate == GUIEngine::GAME &&
!GUIEngine::ModalDialog::isADialogActive())
{
const unsigned int kart_amount = getNumKarts();
for (unsigned int i = 0; i<kart_amount; i++)