allow modifications to change unit ellipse,

...feature had been lost between 1.4 and 1.6
This commit is contained in:
Jérémy Rosen 2009-12-06 10:41:36 +00:00
parent 61469c53ef
commit 852f7404d5
2 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,7 @@ Version 1.7.9+svn:
* Resizing the MP lobby no longer crashes randomly
* WML Engine:
* Fix bug #14859: [time_area] created by event are not saved
* Allow modifications to change unit ellipse
* Miscellaneous and bugfixes:
* Fix bug #14865: move+attack into hex with ambusher causes crash
* Shorter "Initializing Display" phase when staying in same campaign/MP

View File

@ -2440,6 +2440,8 @@ void unit::add_modification(const std::string& type, const config& mod, bool no_
LOG_UT << "applying image_mod \n";
} else if (apply_to == "new_animation") {
unit_animation::add_anims(animations_, effect);
} else if (apply_to == "ellipse") {
cfg_["ellipse"] = effect["ellipse"];
}
} // end while
} else { // for times = per level & level = 0 we still need to rebuild the descriptions