[colobot] 136/390: Fixed problems with loading save screenshots (issue #335)

Didier Raboud odyx at moszumanska.debian.org
Fri Jun 12 14:21:38 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 d75efcc5b272502e9a916610d1002145f4074638
Author: krzys-h <krzys_h at interia.pl>
Date:   Mon Oct 27 22:08:49 2014 +0100

    Fixed problems with loading save screenshots (issue #335)
---
 src/ui/maindialog.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/ui/maindialog.cpp b/src/ui/maindialog.cpp
index c607d7a..94d6f0c 100644
--- a/src/ui/maindialog.cpp
+++ b/src/ui/maindialog.cpp
@@ -4165,6 +4165,8 @@ void CMainDialog::IOUpdateList()
         return;
 
     std::string filename = (m_saveList.at(sel) / "screen.png").make_preferred().string();
+    boost::replace_all(filename, GetSavegameDir(), GetPHYSFSSavegameDir()); //TODO: Refactor everything to PHYSFS, see issue #334
+    filename = "../"+filename;
     if ( m_phase == PHASE_WRITE  || m_phase == PHASE_WRITEs )
     {
         if ( sel < max-1 )
@@ -6052,7 +6054,7 @@ bool CMainDialog::GetHimselfDamage()
 
 
 
-// Saves the personalized player.
+// the personalized player.
 
 void CMainDialog::WriteGamerPerso(char *gamer)
 {

-- 
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