[colobot] 152/377: Allow on-crash save during in-simulation config, closes #685

Didier Raboud odyx at moszumanska.debian.org
Wed Mar 30 13:34:09 UTC 2016


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

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

commit e20f5f6983548241b3742b8d103227a72347def4
Author: krzys-h <krzys_h at interia.pl>
Date:   Sat Dec 19 22:06:16 2015 +0100

    Allow on-crash save during in-simulation config, closes #685
---
 src/app/signal_handlers.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/signal_handlers.cpp b/src/app/signal_handlers.cpp
index 618f323..f685a58 100644
--- a/src/app/signal_handlers.cpp
+++ b/src/app/signal_handlers.cpp
@@ -150,7 +150,7 @@ void CSignalHandlers::ReportError(const std::string& errorMessage)
         robotMain = CRobotMain::GetInstancePointer();
         msg << "The game was in phase " << PhaseToString(robotMain->GetPhase()) << " (ID=" << robotMain->GetPhase() << ")" << std::endl;
         msg << "Last started level was: category=" << GetLevelCategoryDir(robotMain->GetLevelCategory()) << " chap=" << robotMain->GetLevelChap() << " rank=" << robotMain->GetLevelRank() << std::endl;
-        canSave = (robotMain->GetPhase() == PHASE_SIMUL) && !robotMain->IsLoading();
+        canSave = (robotMain->GetPhase() == PHASE_SIMUL || IsInSimulationConfigPhase(robotMain->GetPhase())) && !robotMain->IsLoading();
     }
     msg << "==============================" << std::endl;
     msg << std::endl;

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