fixed smaller bug and set par time for level 12

main
Martin Felis 2011-04-30 17:12:00 +02:00
parent 980f55955d
commit e63456f7fe
3 changed files with 8 additions and 1 deletions

View File

@ -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";

View File

@ -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();
}

View File

@ -2,6 +2,7 @@
# <Type> <player?> <xpos> <ypos> <zpos> <zrot> <yrot> <xrot> <xvel> <yvel> <zvel> <rotvel>
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