Fix Wrong Way message, fixes #3159

This commit is contained in:
auria.mg 2018-03-20 20:05:34 -04:00
parent a27dd674a0
commit 41cd33ce55
2 changed files with 3 additions and 1 deletions

View File

@ -893,6 +893,7 @@ void LinearWorld::checkForWrongDirection(unsigned int i, float dt)
if (wrongway_counter > 1.0f)
{
m_race_gui->cleanupMessages(0.0f);
m_race_gui->addMessage(_("WRONG WAY!"), kart,
/* time */ -1.0f,
video::SColor(255,255,255,255),

View File

@ -185,7 +185,6 @@ protected:
RaceGUIMultitouch* m_multitouch_gui;
void cleanupMessages(const float dt);
//void createMarkerTexture();
void createRegularPolygon(unsigned int n, float radius,
const core::vector2df &center,
@ -248,6 +247,8 @@ public:
const core::recti &viewport,
const core::vector2df &scaling) {};
void cleanupMessages(const float dt);
}; // RaceGUIBase
#endif