Author: zookeeper
Date: Thu Apr 16 22:52:25 2009
New Revision: 34971

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34971&view=rev
Log:
Ported r34970 to 1.6.

Modified:
    
branches/1.6/data/campaigns/Heir_To_The_Throne/scenarios/17_Scepter_of_Fire.cfg

Modified: 
branches/1.6/data/campaigns/Heir_To_The_Throne/scenarios/17_Scepter_of_Fire.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/data/campaigns/Heir_To_The_Throne/scenarios/17_Scepter_of_Fire.cfg?rev=34971&r1=34970&r2=34971&view=diff
==============================================================================
--- 
branches/1.6/data/campaigns/Heir_To_The_Throne/scenarios/17_Scepter_of_Fire.cfg 
(original)
+++ 
branches/1.6/data/campaigns/Heir_To_The_Throne/scenarios/17_Scepter_of_Fire.cfg 
Thu Apr 16 22:52:25 2009
@@ -102,6 +102,33 @@
                     side=$side_kill
                 [/kill]
                 {CLEAR_VARIABLE side_kill}
+
+                # just making sure that the starting castle is big enough that
+                # no recalled units can end up inside walls
+                [store_locations]
+                    [and]
+                        [filter]
+                            id=Konrad
+                        [/filter]
+
+                        radius=1
+                    [/and]
+
+                    [not]
+                        terrain=C*,K*
+                    [/not]
+
+                    variable=adjacent_to_starting_loc
+                [/store_locations]
+
+                {FOREACH adjacent_to_starting_loc i}
+                    [terrain]
+                        
x,y=$adjacent_to_starting_loc[$i].x,$adjacent_to_starting_loc[$i].y
+                        terrain=Cud
+                    [/terrain]
+                {NEXT i}
+
+                {CLEAR_VARIABLE adjacent_to_starting_loc}
             [/event]
 
             [event]


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to