mail[Wesnoth-commits] r44099 - in /trunk/src: display.cpp game_display.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by alinktomine on July 11, 2010 - 06:28:
Author: alink
Date: Sun Jul 11 06:28:03 2010
New Revision: 44099

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44099&view=rev
Log:
Activate animation in editor. Can still be disabled in preferences.
Fix weird update of animated terrains when touching the map.
Mainly useful to design/debug animated terrains but will also allow to use
animation in editor UI.

Modified:
    trunk/src/display.cpp
    trunk/src/game_display.cpp

Modified: trunk/src/display.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/display.cpp?rev=44099&r1=44098&r2=44099&view=diff
==============================================================================
--- trunk/src/display.cpp (original)
+++ trunk/src/display.cpp Sun Jul 11 06:28:03 2010
@@ -2340,6 +2340,7 @@
 
 void display::invalidate_animations()
 {
+       new_animation_frame();
        if (!preferences::animate_map()) {
                return;
        }

Modified: trunk/src/game_display.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_display.cpp?rev=44099&r1=44098&r2=44099&view=diff
==============================================================================
--- trunk/src/game_display.cpp (original)
+++ trunk/src/game_display.cpp Sun Jul 11 06:28:03 2010
@@ -892,7 +892,6 @@
 
 void game_display::invalidate_animations()
 {
-       new_animation_frame();
        display::invalidate_animations();
        foreach (unit& u, units_) {
                u.refresh();




Related Messages


Powered by MHonArc, Updated Sun Jul 11 06:40:12 2010