From 4447f3431edc789b6b91bc0a71a5ab9e4631276a Mon Sep 17 00:00:00 2001 From: auria Date: Tue, 30 Nov 2010 23:36:14 +0000 Subject: [PATCH] Don't show lap message on last lap git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6822 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/modes/linear_world.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modes/linear_world.cpp b/src/modes/linear_world.cpp index d216c2ba1..1950596c4 100644 --- a/src/modes/linear_world.cpp +++ b/src/modes/linear_world.cpp @@ -306,7 +306,7 @@ void LinearWorld::newLap(unsigned int kart_index) } } } - else if (kart_info.m_race_lap > 0) + else if (kart_info.m_race_lap > 0 && kart_info.m_race_lap+1 < lap_count) { m_race_gui->addMessage(StringUtils::insertValues(_("Lap %i"), kart_info.m_race_lap+1), m_karts[kart_index], 3.0f, 40, video::SColor(255, 210, 100, 50), true);