mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-11 23:46:57 +00:00
stop flags flickering from time to time
This commit is contained in:
parent
ca26e6f625
commit
2a08ff5822
@ -20,6 +20,7 @@ SVN trunk (1.1.1+svn):
|
||||
* Send message on player ban or kick
|
||||
* Show a message when a player leaves a game.
|
||||
* WML-generated units with "random_traits" now show the traits description
|
||||
* flags on village don't "flicker" at the end of their animations
|
||||
* graphics
|
||||
* new attack icons: animal fangs, axe, battle axe, faery touch, fireball, hammer, hatchet, lightbeam, magic missile, necromatic staff, magic staff, spear
|
||||
|
||||
|
@ -1998,7 +1998,11 @@ surface display::get_flag(gamemap::TERRAIN terrain, int x, int y)
|
||||
|
||||
for(size_t i = 0; i != teams_.size(); ++i) {
|
||||
if(teams_[i].owns_village(loc) && (!fogged(x,y) || !shrouded(x,y) && !teams_[currentTeam_].is_enemy(i+1))) {
|
||||
return image::get_image(flags_[i].get_current_frame());
|
||||
if(image::get_image(flags_[i].get_current_frame())) {
|
||||
return image::get_image(flags_[i].get_current_frame());
|
||||
} else {
|
||||
return image::get_image(flags_[i].get_first_frame());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user