From e20f5f6983548241b3742b8d103227a72347def4 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Sat, 19 Dec 2015 22:06:16 +0100 Subject: [PATCH] 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 618f323d..f685a587 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;