diff --git a/src/race/race_manager.hpp b/src/race/race_manager.hpp index 7be0e8227..7de4d8eda 100644 --- a/src/race/race_manager.hpp +++ b/src/race/race_manager.hpp @@ -613,6 +613,8 @@ public: // ------------------------------------------------------------------------ int getTrackNumber() const { return m_track_number; } // ------------------------------------------------------------------------ + int getNumOfTracks() const { return (int)m_tracks.size(); } + // ------------------------------------------------------------------------ /** Returns the list of AI karts to use. Used for networking, and for * the --ai= command line option. */ const std::vector& getAIKartList() const diff --git a/src/states_screens/race_result_gui.cpp b/src/states_screens/race_result_gui.cpp index e656a669c..0e0d1e7ff 100644 --- a/src/states_screens/race_result_gui.cpp +++ b/src/states_screens/race_result_gui.cpp @@ -205,8 +205,11 @@ void RaceResultGUI::enableAllButtons() middle->setText(_("Continue")); middle->setVisible(true); - bottom->setText(_("Abort Grand Prix")); - bottom->setVisible(true); + if (race_manager->getTrackNumber() + 1 < race_manager->getNumOfTracks()) + { + bottom->setText(_("Abort Grand Prix")); + bottom->setVisible(true); + } middle->setFocusForPlayer(PLAYER_ID_GAME_MASTER); }