mail[Wesnoth-commits] r20020 - in /trunk: changelog data/core/macros/animation-utils.cfg


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

Header


Content

Posted by jeremy . rosen on September 01, 2007 - 08:49:
Author: boucman
Date: Sat Sep  1 08:49:17 2007
New Revision: 20020

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20020&view=rev
Log:
no more idle animations for units next to a hostile unit

Modified:
    trunk/changelog
    trunk/data/core/macros/animation-utils.cfg

Modified: trunk/changelog
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/changelog?rev=20020&r1=20019&r2=20020&view=diff
==============================================================================
--- trunk/changelog (original)
+++ trunk/changelog Sat Sep  1 08:49:17 2007
@@ -18,6 +18,7 @@
    does it for us (and better)
  * graphics:
    * new graphics for the highwayman
+   * no more idle animations for units next to an enemy unit
  * miscellaneous and bug fixes
    * various bug fixes and code cleanups
 

Modified: trunk/data/core/macros/animation-utils.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/core/macros/animation-utils.cfg?rev=20020&r1=20019&r2=20020&view=diff
==============================================================================
--- trunk/data/core/macros/animation-utils.cfg (original)
+++ trunk/data/core/macros/animation-utils.cfg Sat Sep  1 08:49:17 2007
@@ -197,8 +197,7 @@
 # to provide a standard set of conditions to play the idle animation
 
 #define STANDARD_IDLE_FILTER
-    # Poisoned units should have no idle animation.  This macro defines a
-    # filter that excludes them.
+    # Poisoned units should have no idle animation. 
     [unit_filter]
         [not]
             [wml_filter]
@@ -206,6 +205,14 @@
                     poisoned="yes"
                 [/status]
             [/wml_filter]
+        [/not]
+    [/unit_filter]
+    # Units next to enemis should not have idle anims
+    [unit_filter]
+        [not]
+            [filter_adjacent]
+               is_enemy="yes"
+            [/filter_adjacent]
         [/not]
     [/unit_filter]
 #enddef




Related Messages


Powered by MHonArc, Updated Sat Sep 01 10:00:16 2007