add display updates and invalidate_all in some places

fixes bug #7131
This commit is contained in:
Martin Renold 2007-02-20 16:40:43 +00:00
parent f0e27026a4
commit 1b4a5792bd
5 changed files with 10 additions and 2 deletions

View file

@ -189,6 +189,9 @@ Version 1.3-svn:
* overall game performance improved when many units are visible
* better performance when mouse is over a unit that sees many enemy units
* show full username at bottom of screen when moused over in MP Lobby
* animations draw faster now and the speed is independent of the resolution
* fog/shroud is cleared after attack-move (bug #7131)
* friends list
* added a friend list in MP lobby, they will display a special icon in lobby,
and you can be warned when they join the lobby even when not receiving

View file

@ -111,5 +111,4 @@ Version 1.3-svn:
when friends join the lobby.
* Added a sub tab of multiplayer to the preferences menu to view and edit
your friends and ignores list.
* Improved performance when scrolling and when selecting units.
* The game is more responsive now when many units are visible.
* There were many performance improvements, the game runs faster now.

View file

@ -2156,6 +2156,7 @@ void apply_shroud_changes(undo_list& undos, display* disp, const gamestatus& sta
disp->recalculate_minimap();
disp->unhighlight_reach();
disp->set_route(NULL);
disp->invalidate_all();
} else {
recalculate_fog(map,status,gamedata,units,teams,team);
}

View file

@ -1055,6 +1055,8 @@ void mouse_handler::left_click(const SDL_MouseButtonEvent& event, const bool bro
//check if some new part of map discovered or is active delay shroud updates, which need special care
if (clear_shroud(*gui_, status_, map_, gameinfo_, units_, teams_, team_num_ - 1)||!teams_[team_num_-1].auto_shroud_updates()){
clear_undo_stack();
gui_->invalidate_all();
gui_->draw();
//some new part of map discovered
for(unit_map::const_iterator u = units_.begin(); u != units_.end(); ++u) {
if(teams_[team_num_-1].fogged(u->first.x,u->first.y) == false) {
@ -1075,6 +1077,8 @@ void mouse_handler::left_click(const SDL_MouseButtonEvent& event, const bool bro
if(check_shroud && clear_shroud(*gui_, status_, map_, gameinfo_, units_, teams_, team_num_ - 1)) {
clear_undo_stack();
gui_->invalidate_all();
gui_->draw();
}
return;

View file

@ -1072,6 +1072,7 @@ bool do_replay(display& disp, const gamemap& map, const game_data& gameinfo,
disp.recalculate_minimap();
disp.invalidate_game_status();
disp.invalidate_all();
disp.draw();
}
child = cfg->child("verify");