mail[Wesnoth-commits] r28813 - in /trunk/data: campaigns/Descent_Into_Darkness/scenarios/ campaigns/The_South_Guard/scenarios/ core/macros/


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

Header


Content

Posted by esr on August 20, 2008 - 23:30:
Author: esr
Date: Wed Aug 20 23:30:23 2008
New Revision: 28813

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28813&view=rev
Log:
Restore some filter elements restricting to units on map that I removed in 
28001 and 28002, mistakenly believing them to be no-ops.

Modified:
    trunk/data/campaigns/Descent_Into_Darkness/scenarios/07_A_Small_Favor.cfg
    
trunk/data/campaigns/The_South_Guard/scenarios/06a_Tidings_Good_And_Ill.cfg
    trunk/data/core/macros/unit-utils.cfg

Modified: 
trunk/data/campaigns/Descent_Into_Darkness/scenarios/07_A_Small_Favor.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/Descent_Into_Darkness/scenarios/07_A_Small_Favor.cfg?rev=28813&r1=28812&r2=28813&view=diff
==============================================================================
--- trunk/data/campaigns/Descent_Into_Darkness/scenarios/07_A_Small_Favor.cfg 
(original)
+++ trunk/data/campaigns/Descent_Into_Darkness/scenarios/07_A_Small_Favor.cfg 
Wed Aug 20 23:30:23 2008
@@ -354,6 +354,7 @@
 
         {MODIFY_UNIT (
             side=1
+            {ON_MAP_ONLY}
             [not]
                 id=Malin Keshar
 

Modified: 
trunk/data/campaigns/The_South_Guard/scenarios/06a_Tidings_Good_And_Ill.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/The_South_Guard/scenarios/06a_Tidings_Good_And_Ill.cfg?rev=28813&r1=28812&r2=28813&view=diff
==============================================================================
--- 
trunk/data/campaigns/The_South_Guard/scenarios/06a_Tidings_Good_And_Ill.cfg 
(original)
+++ 
trunk/data/campaigns/The_South_Guard/scenarios/06a_Tidings_Good_And_Ill.cfg 
Wed Aug 20 23:30:23 2008
@@ -461,6 +461,7 @@
                     variable=stored_Sir_Gerrick_army
                     [filter]
                         side=1
+                        {ON_MAP_ONLY}
                     [/filter]
                     kill=yes
                 [/store_unit]

Modified: trunk/data/core/macros/unit-utils.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/core/macros/unit-utils.cfg?rev=28813&r1=28812&r2=28813&view=diff
==============================================================================
--- trunk/data/core/macros/unit-utils.cfg (original)
+++ trunk/data/core/macros/unit-utils.cfg Wed Aug 20 23:30:23 2008
@@ -6,6 +6,10 @@
 # This needs to match the magic UNREACHABLE constent in unit_movement_type
 #define UNREACHABLE
     99 #enddef
+
+# Use this to restrict a filter to on-map units, not the recaall list.
+#define ON_MAP_ONLY
+    x,y=1-99,1-99 #enddef
 
 #define GENERIC_UNIT SIDE TYPE X Y
     # Creates a generic unit of TYPE belonging to SIDE at X,Y, which has a




Related Messages


Powered by MHonArc, Updated Thu Aug 21 02:21:32 2008