fix [teleport] capturing villages with the wrong side (bug #11683)

Note : this might result in OOSes in some MP scenarios using
[teleport] to a village

Such scenarios a very rare (i'm not aware of any) so i guess a very
minor incompatibility is OK there.
This commit is contained in:
Benoît Timbert 2008-05-13 21:24:22 +00:00
parent 35d2e2f917
commit 5f0ce78901
2 changed files with 3 additions and 1 deletions

View file

@ -2,6 +2,8 @@ Version 1.4.2+svn:
* language and i18n:
* new translations: Friulian, Macedonian
* updated translations: French, Russian, Slovak
* WML engine:
* fix [teleport] capturing villages with the wrong side (bug #11683)
* miscellaneous and bug fixes:
* starting a campaing without any installed now gives an error.
* fixed issues with campaign info in non-compressed saved games

View file

@ -509,7 +509,7 @@ void event_handler::handle_event_command(const queued_event& event_info,
units->add(up);
unit_mutations++;
if(game_map->is_village(vacant_dst)) {
get_village(vacant_dst, *screen,*teams,side,*units);
get_village(vacant_dst, *screen,*teams,side-1,*units);
}
if(utils::string_bool(cfg["clear_shroud"],true)) {