Restore cyclic haloes (Fix bug #10393):
Consider a cyclic halo animation as never expired. (because cyclic animation now finish)
This commit is contained in:
parent
a7499251cc
commit
6914277871
2 changed files with 3 additions and 1 deletions
|
@ -61,6 +61,8 @@ public:
|
|||
void update_last_draw_time();
|
||||
bool need_update() const;
|
||||
|
||||
bool cycles() const {return cycles_;};
|
||||
|
||||
//! Returns true if the current animation was finished.
|
||||
bool animation_finished() const;
|
||||
bool animation_would_finish() const;
|
||||
|
|
|
@ -48,7 +48,7 @@ public:
|
|||
bool render();
|
||||
void unrender();
|
||||
|
||||
bool expired() const { return images_.animation_finished(); }
|
||||
bool expired() const { return !images_.cycles() && images_.animation_finished(); }
|
||||
bool need_update() const { return images_.need_update(); }
|
||||
bool does_change() const { return !images_.does_not_change(); }
|
||||
bool on_location(const std::set<gamemap::location>& locations) const;
|
||||
|
|
Loading…
Add table
Reference in a new issue