1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-13 01:20:34 +02:00

[programming challenge] Minor fixes.

This commit is contained in:
Michał W. Urbańczyk
2011-11-10 12:15:27 +00:00
parent 3fd579a433
commit 5be8c31d97
2 changed files with 6 additions and 6 deletions

View File

@ -478,7 +478,7 @@ void CGameHandler::endBattle(int3 tile, const CGHeroInstance *hero1, const CGHer
time_t czas;
time(&czas);
std::string resultTypes[] = {"SIDE_DEFEATED", "SIDE_RETREATED", "SIDE_SURRENDERED", "SIDE_DISQUALIFIED"};
std::ofstream resultsList(RESULTS_PATH, std::fstream::out | std::fstream::app);
std::ofstream resultsList(RESULTS_PATH.c_str(), std::fstream::out | std::fstream::app);
if(resultsList)
resultsList << boost::format("%s\t%s\t%s\t%d\t%d\t%s\t%s") % gs->scenarioOps->mapname % ais[0] % ais[1] % (int)battleResult.data->winner % casualtiesPoints % resultTypes[battleResult.data->result] % asctime(localtime(&czas));
else