Fix update of the minimap and starting positions...

...when using the "delay transitions update" option.
This commit is contained in:
Ali El Gariani 2008-02-17 18:02:11 +00:00
parent 3f3978b249
commit 423e6769bf
2 changed files with 9 additions and 5 deletions

View file

@ -40,6 +40,8 @@ Version 1.3.16+svn:
* Fix flickering hp/xp bars of ghost and other invisible units.
* Placement of random terrain images is more random.
* Optimization of damage floating labels
* Fix update of the minimap and starting positions when using the "delay
transitions update" option.
Version 1.3.16:
* campaigns:

View file

@ -1612,13 +1612,15 @@ void map_editor::main_loop() {
// When the map has changed, wait until the left mouse button
// is not held down, and then update the minimap and
// the starting position labels.
if (map_dirty_ && auto_update_) {
if (map_dirty_) {
if (!l_button_down && !r_button_down) {
map_dirty_ = false;
gui_.rebuild_all();
gui_.invalidate_all();
recalculate_starting_pos_labels();
if (auto_update_) {
gui_.rebuild_all();
gui_.invalidate_all();
}
gui_.recalculate_minimap();
recalculate_starting_pos_labels();
map_dirty_ = false;
}
}
if (l_button_palette_dirty_) {