From c8db169bed3dcbcb1462294d8b46182ead0b152c Mon Sep 17 00:00:00 2001 From: Gregory Shikhman Date: Wed, 2 Sep 2009 13:18:36 +0000 Subject: [PATCH] Fixed bug introduced in 2009-08-10T06:32:31Z!cornmander@cornmander.com: upload log always contains a [quit] child, even during victory and draw. --- src/playsingle_controller.cpp | 1 - src/upload_log.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/playsingle_controller.cpp b/src/playsingle_controller.cpp index cb0b1c61808..5c24ceb78af 100644 --- a/src/playsingle_controller.cpp +++ b/src/playsingle_controller.cpp @@ -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) { diff --git a/src/upload_log.cpp b/src/upload_log.cpp index 99256a8584f..ff022927531 100644 --- a/src/upload_log.cpp +++ b/src/upload_log.cpp @@ -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)