Replaced variable i by TRANSFORM_UNIT_i in macro TRANSFORM_UNIT.

Patch #3237 by akihara
This commit is contained in:
Iurii Chernyi 2012-04-06 23:04:53 +00:00
parent 4f40b2c573
commit 78e345556b
3 changed files with 10 additions and 6 deletions

View file

@ -189,6 +189,7 @@ Version 1.11.0-svn:
* Border hexes are included when using radius= in the SLF of [remove_shroud]
and [place_shroud] (they were already included for directly matched hexes).
* Retrofitted CLEAR_FOG and UNCLEAR_FOG macros to make use of [lift_fog] and [reset_fog]
* Replaced variable i by TRANSFORM_UNIT_i in macro TRANSFORM_UNIT
* Miscellaneous and bug fixes:
* Fix wrong preferences path suffix (1.1 instead of 1.10) on Linux and other
platforms using XDG layout (no compiled-in preferences path override,

View file

@ -885,6 +885,9 @@
[entry]
name = "Alesis Novik"
[/entry]
[entry]
name = "Aline Riss (akihara)"
[/entry]
[entry]
name = "André Knispel"
[/entry]

View file

@ -252,10 +252,10 @@
kill=no
[/store_unit]
{ADVANCE_UNIT ({FILTER}) ({TYPE}) }
{FOREACH TU_store i}
{FOREACH TU_store TRANSFORM_UNIT_i}
[store_unit]
[filter]
id=$TU_store[$i].id
id=$TU_store[$TRANSFORM_UNIT_i].id
[/filter]
variable=TUrestore_store
kill=yes
@ -264,11 +264,11 @@
name=TUrestore_store
mode=merge
[value]
hitpoints=$TU_store[$i].hitpoints
experience=$TU_store[$i].experience
hitpoints=$TU_store[$TRANSFORM_UNIT_i].hitpoints
experience=$TU_store[$TRANSFORM_UNIT_i].experience
[insert_tag]
name=status
variable=TU_store[$i].status
variable=TU_store[$TRANSFORM_UNIT_i].status
[/insert_tag]
[/value]
[/set_variables]
@ -289,6 +289,6 @@
advance=false
[/unstore_unit]
{CLEAR_VARIABLE TUrestore_store}
{NEXT i}
{NEXT TRANSFORM_UNIT_i}
{CLEAR_VARIABLE TU_store}
#enddef