Make PLACE_HALO a local macro where it's needed.

This commit is contained in:
Anonymissimus 2012-01-21 19:56:06 +00:00
parent 433ddaee43
commit 631e73b1d3
2 changed files with 11 additions and 9 deletions

View file

@ -104,15 +104,6 @@
[/item]
#enddef
#define PLACE_HALO IMAGE X Y
# Place an image at a specified location on the map.
[item]
x={X}
y={Y}
halo={IMAGE}
[/item]
#enddef
#define REMOVE_IMAGE X Y
# Removes a previously set image from a tile.
#

View file

@ -47,6 +47,15 @@
halo="units/human-magi/great-mage+female.png~RC(magenta>black)~FL():444,units/human-magi/great-mage+female-attack-magic-1.png~RC(magenta>black)~FL():444,units/human-magi/great-mage+female-attack-magic-2.png~RC(magenta>black)~FL():444,units/human-magi/great-mage+female-attack-magic-1.png~RC(magenta>black)~FL():444"
[/item]
#define PLACE_HALO IMAGE X Y
# Place an image at a specified location on the map.
[item]
x={X}
y={Y}
halo={IMAGE}
[/item]
#enddef
{PLACE_IMAGE scenery/rock-cairn.png 23 19}
{PLACE_IMAGE scenery/rock-cairn.png 24 18}
{PLACE_IMAGE scenery/rock-cairn.png 25 18}
@ -270,6 +279,8 @@
{PLACE_HALO "units/saurians/oracle/oracle-ne-run9.png~FL()~RC(magenta>5)" 14 9}
[/event]
#undef PLACE_HALO
[event]
name=start