From e42abbbf24ab22a3e158b9877018b6f43224f226 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 17 Jan 2019 14:12:26 +0100 Subject: [PATCH] racing:: finish message --- racing.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/racing.cpp b/racing.cpp index eed34030..65867a2b 100644 --- a/racing.cpp +++ b/racing.cpp @@ -1142,6 +1142,11 @@ void race_won() { if(place == 1 && losers) trophy[current_player] = 0xFFD500FF; if(place == 2) trophy[current_player] = 0xFFFFC0FF; if(place == 3) trophy[current_player] = 0x967444FF; + + if(place + losers > 1) + addMessage(XLAT("Finished the race! Time: %1, place: %2 out of %3", racetimeformat(result), its(place), its(place+losers))); + else + addMessage(XLAT("Finished the race in time %1!", racetimeformat(result))); if(place == 1 && losers && official_race) achievement_gain("RACEWON", rg::racing);