Allow on-crash save during in-simulation config, closes #685

dev-time-step
krzys-h 2015-12-19 22:06:16 +01:00
parent 1dd230aaaf
commit e20f5f6983
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ void CSignalHandlers::ReportError(const std::string& errorMessage)
robotMain = CRobotMain::GetInstancePointer(); robotMain = CRobotMain::GetInstancePointer();
msg << "The game was in phase " << PhaseToString(robotMain->GetPhase()) << " (ID=" << robotMain->GetPhase() << ")" << std::endl; 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; 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;
msg << std::endl; msg << std::endl;