Author: zookeeper
Date: Thu Apr 16 22:50:43 2009
New Revision: 34970

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34970&view=rev
Log:
Enforce a 7-hex starting castle, should fix bug #13377.

Modified:
    trunk/data/campaigns/Heir_To_The_Throne/scenarios/17_Scepter_of_Fire.cfg

Modified: 
trunk/data/campaigns/Heir_To_The_Throne/scenarios/17_Scepter_of_Fire.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/Heir_To_The_Throne/scenarios/17_Scepter_of_Fire.cfg?rev=34970&r1=34969&r2=34970&view=diff
==============================================================================
--- trunk/data/campaigns/Heir_To_The_Throne/scenarios/17_Scepter_of_Fire.cfg 
(original)
+++ trunk/data/campaigns/Heir_To_The_Throne/scenarios/17_Scepter_of_Fire.cfg 
Thu Apr 16 22:50:43 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