Address the bandit-popup bug reported by Mordante and attached to bug #10953;

clear the village even if the number of bandits generates is 0.
This commit is contained in:
Eric S. Raymond 2008-02-02 04:40:04 +00:00
parent efedfafd56
commit 55cee08b61

View file

@ -159,6 +159,10 @@
not_equals=yes
[/variable]
[then]
[set_variable]
name=cleared_$x1|,$y1|_village
value=yes
[/set_variable]
# Compute the number of indigs that will pop up
[if]
[variable]
@ -221,7 +225,9 @@
[/unit]
[/then]
[/if]
[set_variable]
[set_
variable]
name=indigs
add=-1
[/set_variable]
@ -235,10 +241,6 @@
greater_than=0
[/variable]
[then]
[set_variable]
name=cleared_$x1|,$y1|_village
value=yes
[/set_variable]
[message]
speaker=unit
message= _ "The villagers are attacking us!"