Skip to content

Commit

Permalink
dont delete a side from carryover if it came back to life
Browse files Browse the repository at this point in the history
the previous behaviour was inconsitent, since [team]lost= wasn't read when loading a savegame. So this doesn't break previous behaviour.

This especialy fixes the scenario "Stolen Gold" from "Northern Rebirth" (http://gna.org/bugs/?22601)
  • Loading branch information
gfgtdf committed Sep 10, 2014
1 parent 7abb38a commit e0ec8c3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/play_controller.cpp
Expand Up @@ -1424,9 +1424,13 @@ void play_controller::check_victory()

if (remove_from_carryover_on_defeat_)
{
tm.set_lost();
tm.set_lost(true);
}
}
else if(remove_from_carryover_on_defeat_)
{
tm.set_lost(false);
}

if (tm.is_human()) {
there_is_a_local_human = true;
Expand Down

0 comments on commit e0ec8c3

Please sign in to comment.