From f84184aae160dfca18642e0cdbe712422261154f Mon Sep 17 00:00:00 2001 From: "Martin Felis (berta)" Date: Mon, 1 Nov 2010 22:30:40 +0100 Subject: [PATCH] fixed highscore saving --- asteroids/Model.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/asteroids/Model.cc b/asteroids/Model.cc index c8af4e2..b90d751 100644 --- a/asteroids/Model.cc +++ b/asteroids/Model.cc @@ -262,6 +262,10 @@ unsigned int Model::AddHighscoreEntry(const std::string &name, const unsigned in if (counter < 10) return counter; + // if we have all 10 entries then we can save + // the highscore + SaveHighscoreList(); + mNewestHighscoreEntryIndex = 99999; return 99999;