[colobot] 220/390: Fixed bug in saving list of finished missions, closes #390
Didier Raboud
odyx at moszumanska.debian.org
Fri Jun 12 14:21:48 UTC 2015
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch upstream/latest
in repository colobot.
commit 675ec3a222fa88c78b9939dbc9637a1eaa1fea11
Author: krzys-h <krzys_h at interia.pl>
Date: Wed Nov 12 15:11:42 2014 +0100
Fixed bug in saving list of finished missions, closes #390
---
src/ui/maindialog.cpp | 2 +-
src/ui/maindialog.h | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/ui/maindialog.cpp b/src/ui/maindialog.cpp
index 351ccee..094458b 100644
--- a/src/ui/maindialog.cpp
+++ b/src/ui/maindialog.cpp
@@ -6200,7 +6200,7 @@ bool CMainDialog::WriteGamerInfo()
{
if ( m_sceneInfo[i].numTry == 0 && !m_sceneInfo[i].bPassed ) continue;
- file << "Chapter " << i/100 << ": Scene " << i%100 << ": numTry=" << m_sceneInfo[i].numTry << " passed=1" << m_sceneInfo[i].bPassed << "\n";
+ file << "Chapter " << i/100 << ": Scene " << i%100 << ": numTry=" << m_sceneInfo[i].numTry << " passed=" << (m_sceneInfo[i].bPassed ? "1" : "0") << "\n";
}
file.close();
diff --git a/src/ui/maindialog.h b/src/ui/maindialog.h
index 67a0bbb..d0753df 100644
--- a/src/ui/maindialog.h
+++ b/src/ui/maindialog.h
@@ -52,8 +52,8 @@ const int MAXSCENE = 1000;
struct SceneInfo
{
- char numTry;
- char bPassed;
+ int numTry;
+ bool bPassed;
};
struct GamerPerso
--
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