This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch debian/master
in repository colobot.

commit 1eee06d9f952ad679931e616332bfd35a837fa4a
Author: melex750 <melex...@users.noreply.github.com>
Date:   Tue Oct 24 04:55:22 2017 -0400

    Keep mission history after loading a crashsave
    
    Fixes #812
---
 src/level/player_profile.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/level/player_profile.cpp b/src/level/player_profile.cpp
index bedd76c..21bb3b2 100644
--- a/src/level/player_profile.cpp
+++ b/src/level/player_profile.cpp
@@ -518,6 +518,8 @@ void CPlayerProfile::LoadScene(std::string dir)
     CLevelParserLine* line = levelParser.Get("Mission");
     cat = GetLevelCategoryFromDir(line->GetParam("base")->AsString());
 
+       if (dir == "../../crashsave") LoadFinishedLevels(cat);
+
     rank = line->GetParam("rank")->AsInt();
     if (cat == LevelCategory::CustomLevels)
     {

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/colobot.git

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to