diff --git a/asteroids/Model.cc b/asteroids/Model.cc index 8587f93..4dc6759 100644 --- a/asteroids/Model.cc +++ b/asteroids/Model.cc @@ -55,7 +55,7 @@ int Model::OnInit (int argc, char* argv[]) { mLevelHashes["level09_WolleNew4_wheres_the_brain.map"] = "f3f685f6eb6cc703a5eaa0177472717ea49dddc2099e2bd1865f551f94e8fdf4"; mLevelHashes["level10_WolleWhatever_whatever.map"] = "2f97984e86bd0969909032fa44bcf883dd181fbe61782ee7dd704b0b63dfd0e1"; mLevelHashes["level11_Strahlensatz.map"] = "3f293d4b0ea23688c15761a54b2ee097cc6a41b30750cc8fc5fccf94c20bf018"; - mLevelHashes["level12_almost_there_test5.map"] = "07c12e3ef78ab81b65b0202de498a991dbdbd45de3be43048f9e5127e35d92fe"; + mLevelHashes["level12_almost_there_test5.map"] = "5cefdc7dadbbfc30f32580f3e50cfbb6cae9ca5f432fd73e777bdbb835f3660a"; mLevelHashes["level13_WolleHarder1_tribute_to_lw.map"] = "1b52ccfb9f6211eb07d880cab6bf23b3ac05646561b555077bae14ad8f40c80c"; mLevelHashes["level14_asteroid_field_lets_hide.map"] = "a9e2ddca00eef71a51f564f7d7cdd482e8a4d4fc7b70d4d2bf3d5f496188fce1"; mLevelHashes["level15_WolleNew6_smack_my.map"] = "1d7e1223bbd8a68492108c2416c1a8ba828d293601c02e489dbf6b5db6a1aaa2"; diff --git a/asteroids/View.cc b/asteroids/View.cc index ee0f2a9..c5ea193 100644 --- a/asteroids/View.cc +++ b/asteroids/View.cc @@ -642,6 +642,7 @@ void View::DrawUiGameOver() { // We do not want the background to show the remaining bits of the game GetModel()->SetGameState(GameStatePaused); GetModel()->SubmitHighscoreEntry(GetModel()->GetPlayerName(), GetModel()->GetPoints()); + GetModel()->LoadHighscoreList(); PopViewState(); PushViewState(ViewStateShowHighscore); @@ -1021,6 +1022,11 @@ bool View::DrawUiAskOnlineHighscore() { // Remove the ViewStateGameRunning Engine::SetVariableValue (std::string("use_server_highscore"), std::string("no")); Engine::SetVariableValue ("use_server_highscore_asked", "yes"); + + // submit the highscore if there are any points + if (GetModel()->GetPoints() > 0) + GetModel()->SubmitHighscoreEntry(GetModel()->GetPlayerName(), GetModel()->GetPoints()); + GetModel()->LoadHighscoreList(); } diff --git a/data/levels/level12_almost_there_test5.map b/data/levels/level12_almost_there_test5.map index cc8e2dd..31a41c3 100644 --- a/data/levels/level12_almost_there_test5.map +++ b/data/levels/level12_almost_there_test5.map @@ -2,6 +2,7 @@ # Title Almost there... Author NicoKrass +ParTime 20 GameEntityTypeShip 1 -0.221667 0 0.158333 0 685.954 0 2.02667 0 -1.01333 0 GameEntityTypeAsteroid 0 -3.895 0 -5.35167 0 0 0 0.316667 0 4.56 15.3829 GameEntityTypeAsteroid 0 1.07667 0 -4.02167 0 0 0 -4.655 0 5.28833 42.287