Fixed bug introduced in 2009-08-10T06:32:31Z!cornmander@cornmander.com:

upload log always contains a [quit] child, even during victory and draw.
This commit is contained in:
Gregory Shikhman 2009-09-02 13:18:36 +00:00
parent b28ef886cb
commit c8db169bed
2 changed files with 1 additions and 2 deletions

View File

@ -382,7 +382,6 @@ LEVEL_RESULT playsingle_controller::play_scenario(
throw;
} catch(end_level_exception& end_level) {
ai_testing::log_game_end();
log.quit(turn());
*end_level_result = end_level;
if(!end_level.custom_endlevel_music.empty()) {
switch(end_level.result) {

View File

@ -349,7 +349,7 @@ bool upload_log::game_finished(config *game)
if (!game)
return false;
return game->child("victory") || game->child("defeat") || game->child("quit");
return game->child("victory") || game->child("defeat") || game->child("quit") || game->child("upload_log").child("ai_log");
}
config &upload_log::add_game_result(const std::string &str, int turn)