[colobot] 45/62: Keep mission history after loading a crashsave
Didier Raboud
odyx at moszumanska.debian.org
Fri Nov 10 11:53:58 UTC 2017
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 <melex750 at 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
More information about the Pkg-games-commits
mailing list