Author: zookeeper
Date: Mon Sep 22 19:54:08 2008
New Revision: 29647

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29647&view=rev
Log:
Properly fix bug #12341.

Modified:
    trunk/data/campaigns/Heir_To_The_Throne/scenarios/19a_Snow_Plains.cfg
    trunk/data/campaigns/Heir_To_The_Throne/utils/httt_utils.cfg

Modified: trunk/data/campaigns/Heir_To_The_Throne/scenarios/19a_Snow_Plains.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/Heir_To_The_Throne/scenarios/19a_Snow_Plains.cfg?rev=29647&r1=29646&r2=29647&view=diff
==============================================================================
--- trunk/data/campaigns/Heir_To_The_Throne/scenarios/19a_Snow_Plains.cfg 
(original)
+++ trunk/data/campaigns/Heir_To_The_Throne/scenarios/19a_Snow_Plains.cfg Mon 
Sep 22 19:54:08 2008
@@ -41,7 +41,6 @@
     [/event]
 
     {campaigns/Heir_To_The_Throne/utils/deaths.cfg}
-    {campaigns/Heir_To_The_Throne/utils/httt_utils.cfg}
 
     [side]
         type=Commander
@@ -163,13 +162,5 @@
         [/message]
     [/event]
 
-    [event]
-        name=moveto
-        [filter]
-            side=1
-            x=29
-            y=9
-        [/filter]
-        {OBJ_SWORD_FIRE 29 9 flame_sword}
-    [/event]
+    {OBJ_SWORD_FIRE 29 9 flame_sword}
 [/scenario]

Modified: trunk/data/campaigns/Heir_To_The_Throne/utils/httt_utils.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/Heir_To_The_Throne/utils/httt_utils.cfg?rev=29647&r1=29646&r2=29647&view=diff
==============================================================================
--- trunk/data/campaigns/Heir_To_The_Throne/utils/httt_utils.cfg (original)
+++ trunk/data/campaigns/Heir_To_The_Throne/utils/httt_utils.cfg Mon Sep 22 
19:54:08 2008
@@ -11,8 +11,18 @@
 #
 
 #define OBJ_SWORD_FIRE X Y ID
-    {PLACE_IMAGE items/flame-sword.png ({X}) ({Y})}
-    {VARIABLE sword_taken 0}
+    [event]
+        name=moveto
+
+        [filter]
+            side=1
+            x={X}
+            y={Y}
+        [/filter]
+
+        {PLACE_IMAGE items/flame-sword.png ({X}) ({Y})}
+        {VARIABLE sword_taken 0}
+    [/event]
     [event]
         name=moveto
         first_time_only=no
@@ -106,11 +116,22 @@
                             [/object]
                         [/command]
                     [/option]
+
                     [option]
                         message= _ "No"
+
+                        [command]
+                            [allow_undo]
+                            [/allow_undo]
+                        [/command]
                     [/option]
                 [/message]
             [/then]
+
+            [else]
+                [allow_undo]
+                [/allow_undo]
+            [/else]
         [/if]
     [/event]
 #enddef
@@ -298,42 +319,42 @@
     _f,    _f,    _f,    _f,    Re,    _f,    _f,    _f,    _f,    _f,    _f,  
  Re,    Re,    Re,    Re,    _f,    _f,    _f,    _f,    _f,    _f,    _f,    
_f,    _f,    _f,    _f,    _f,    _f,    _f,    _f,    _f,    _f,    _f,    
Re,    _f,    _f,    _f,    _f,    _f,    _f,    Re,    _f,    _f,    _f,    
_f,    _f,    Re,    _f,    _f,    Re
     _f,    Re,    _f,    _f,    Re,    _f,    _f,    _f,    Re,    Re,    _f,  
  _f,    Re,    _f,   Uu^Vud,    _f,    Re,    Re,    _f,    _f,    _f,    Re,  
  _f,    Re,    _f,    _f,    _f,   Uu^Vud,    Re,    Uu^Uf,    _f,    _f,    
_f,    Uu^Uf,    Re,    _f,    _f,    Re,    _f,    Re,    _f,   Uu^Vud,    Re, 
   _f,    Re,    Re,    Re,    Re,    _f,    Uu^Uf
 "
-        [rule]         # Make sure your castle is not converted
+        [rule]      # Make sure your castle is not converted
             old=Cud
             new=Re, Uu^Vud, Uh, Uu^Uf
             terrain=Cud
         [/rule]
-        [rule]         # Make sure cave walls are not converted
+        [rule]      # Make sure cave walls are not converted
             old=Xu
             new=Re, Uu^Vud, Uh, Uu^Uf
             terrain=Xu
         [/rule]
-        [rule]         # Make sure the keep is not converted
+        [rule]      # Make sure the keep is not converted
             old=Kud
             new=Re, Uu^Vud, Uh, Uu^Uf
             terrain=Kud
         [/rule]
-        [rule]         # Convert cave villages to stone villages
+        [rule]      # Convert cave villages to stone villages
             old=Vu
-            new=_f, Re, Uu^Vud, Uh, Uu^Uf      # wmllint: ignore
+            new=_f, Re, Uu^Vud, Uh, Uu^Uf   # wmllint: ignore
             terrain=Uu^Vud
         [/rule]
-        [rule]         # Add stone villages
+        [rule]      # Add stone villages
             old=Uu
             new=Uu^Vud
             terrain=Uu^Vud
         [/rule]
-        [rule]         # Add roads
+        [rule]      # Add roads
             old=Uu
             new=Re
             terrain=Re
         [/rule]
-        [rule]         # Add hilly caves
+        [rule]      # Add hilly caves
             old=Uu
             new=Uh
             terrain=Uh
         [/rule]
-        [rule]         # Add a mushroom forest
+        [rule]      # Add a mushroom forest
             old=Uu
             new=Uu^Uf
             terrain=Uu^Uf


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

Reply via email to