Fixes a problem with a unit leveling and being hidden...
...in the fog (bug #8296). Made changes upon boucman's instructions.
This commit is contained in:
parent
fc88c07fa0
commit
f0e8031505
1 changed files with 2 additions and 2 deletions
|
@ -143,7 +143,7 @@ bool animate_unit_advancement(const game_data& info,unit_map& units, gamemap::lo
|
|||
|
||||
if(!gui.update_locked()) {
|
||||
u->second.set_leveling_out(gui,u->first);
|
||||
while(!u->second.get_animation()->animation_finished()) {
|
||||
while(!u->second.get_animation()->animation_would_finish()) {
|
||||
gui.invalidate(loc);
|
||||
gui.draw();
|
||||
events::pump();
|
||||
|
@ -166,7 +166,7 @@ bool animate_unit_advancement(const game_data& info,unit_map& units, gamemap::lo
|
|||
|
||||
if(!gui.update_locked()) {
|
||||
u->second.set_leveling_in(gui,u->first);
|
||||
while(!u->second.get_animation()->animation_finished()) {
|
||||
while(!u->second.get_animation()->animation_would_finish()) {
|
||||
gui.invalidate(loc);
|
||||
gui.draw();
|
||||
events::pump();
|
||||
|
|
Loading…
Add table
Reference in a new issue