mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 13:56:18 +00:00
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:
parent
b28ef886cb
commit
c8db169bed
@ -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) {
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user