Author: esr
Date: Sun Jun 28 17:33:21 2009
New Revision: 36445

URL: http://svn.gna.org/viewcvs/wesnoth?rev=36445&view=rev
Log:
Fix for bug #13792: Random villagers in THoT-5 doesn't work properly.

Modified:
    trunk/data/campaigns/The_Hammer_of_Thursagan/scenarios/05_Invaders.cfg

Modified: trunk/data/campaigns/The_Hammer_of_Thursagan/scenarios/05_Invaders.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/The_Hammer_of_Thursagan/scenarios/05_Invaders.cfg?rev=36445&r1=36444&r2=36445&view=diff
==============================================================================
--- trunk/data/campaigns/The_Hammer_of_Thursagan/scenarios/05_Invaders.cfg 
(original)
+++ trunk/data/campaigns/The_Hammer_of_Thursagan/scenarios/05_Invaders.cfg Sun 
Jun 28 17:33:21 2009
@@ -211,9 +211,13 @@
                             [/else]
                         [/if]
                         # Now place the indigs
+                        [set_variable]
+                            name=indig_countdown
+                            value=$indigs
+                        [/set_variable]
                         [while]
                             [variable]
-                                name=indigs
+                                name=indig_countdown
                                 greater_than=0
                             [/variable]
                             [do]
@@ -252,18 +256,14 @@
                                     [/then]
                                 [/if]
                                 [set_variable]
-                                    name=indigs
+                                    name=indig_countdown
                                     add=-1
                                 [/set_variable]
                             [/do]
                         [/while]
-                        {CLEAR_VARIABLE indigs}
+                        {CLEAR_VARIABLE indigs_countdown}
                         # Perform appropriate notifications
                         [if]
-                            [variable]
-                                name=possible_indig_locations.length
-                                greater_than=0
-                            [/variable]
                             [variable]
                                 name=indigs
                                 greater_than=0
@@ -306,6 +306,7 @@
                             [/else]
                         [/if]
                         {CLEAR_VARIABLE possible_indig_locations}
+                        {CLEAR_VARIABLE indigs}
                     [/then]
                 [/if]
             [/else]


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

Reply via email to