mail[Wesnoth-commits] r20045 - /trunk/data/core/macros/utils.cfg


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

Header


Content

Posted by lari . nieminen on September 01, 2007 - 23:43:
Author: zookeeper
Date: Sat Sep  1 23:42:46 2007
New Revision: 20045

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20045&view=rev
Log:
Removed the IF_TERRAIN macro, since it hasn't been needed for anything in a 
long while.

Modified:
    trunk/data/core/macros/utils.cfg

Modified: trunk/data/core/macros/utils.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/core/macros/utils.cfg?rev=20045&r1=20044&r2=20045&view=diff
==============================================================================
--- trunk/data/core/macros/utils.cfg (original)
+++ trunk/data/core/macros/utils.cfg Sat Sep  1 23:42:46 2007
@@ -161,41 +161,6 @@
     {VARIABLE_OP {TO_VAR} format $STORE_UNIT_VAR_store.{VAR}}
 
     {CLEAR_VARIABLE STORE_UNIT_VAR_store}
-#enddef
-
-#define IF_TERRAIN X Y TYPES CONTENTS
-    # This is a way to check whether or not the terrain in the given 
coordinates
-    # is of the given type or types. Might be useful, since filtering by 
terrain
-    # isn't possible directly.
-    #
-    # You can use it, for example, like this:
-    #! [event]
-    #!     name=moveto
-    #!     first_time_only=no
-    #!
-    #!     {IF_TERRAIN $x1 $y1 gfm (
-    #!         [then]
-    #!             {DEBUG_MSG "Stepped on grassland, forest or mountains!"}
-    #!         [/then]
-    #!     )}
-    #! [/event]
-    [store_locations]
-        x={X}
-        y={Y}
-        terrain={TYPES}
-        variable=IF_TERRAIN_temp
-    [/store_locations]
-
-    [if]
-        [variable]
-            name=IF_TERRAIN_temp.length
-            not_equals=0
-        [/variable]
-
-        {CONTENTS}
-    [/if]
-
-    {CLEAR_VARIABLE IF_TERRAIN_temp}
 #enddef
 
 #define GENERIC_UNIT SIDE TYPE X Y




Related Messages


Powered by MHonArc, Updated Sun Sep 02 01:40:21 2007