Address bug #9602. Roze is right,

...IF is too generic a name for that macro to claim.  wmlscope will catch
broken references to it in UMC.
This commit is contained in:
Eric S. Raymond 2007-07-27 18:45:44 +00:00
parent 772988d90c
commit 9a0fbab58c
4 changed files with 7 additions and 7 deletions

View file

@ -142,7 +142,7 @@
{CLEAR_VARIABLE actualStart}
{VARIABLE_OP i random (0..2)}
{IF i numerical_equals 0 (
{IF_VARIABLE i numerical_equals 0 (
[then]
[terrain]
x=6
@ -151,7 +151,7 @@
[/terrain]
[/then]
)}
{IF i numerical_equals 1 (
{IF_VARIABLE i numerical_equals 1 (
[then]
[terrain]
x=6
@ -160,7 +160,7 @@
[/terrain]
[/then]
)}
{IF i numerical_equals 2 (
{IF_VARIABLE i numerical_equals 2 (
[then]
[terrain]
x=2

View file

@ -302,7 +302,7 @@
{LOYAL_PEASANT Thug_Peasant 9 4 Jasken ( _ "Jasken") {TRAIT_RESILIENT}}
#endif
{IF $unit.side equals 1 (
{IF_VARIABLE $unit.side equals 1 (
[then]
[message]
description=Wolmas

View file

@ -301,7 +301,7 @@
side=1
[/filter_second]
{IF $second_unit.hitpoints greater_than 0 (
{IF_VARIABLE $second_unit.hitpoints greater_than 0 (
[then]
[message]
speaker=Baldras

View file

@ -13,11 +13,11 @@
[/have_location]
#enddef
#define IF VAR OP VAL CONTENTS
#define IF_VAR VAR OP VAL CONTENTS
# Shortcut for IF statements testing the value of a variable. Need to write
# [then] and [else] tags manually.
# Use like this:
#! {IF some_variable equals yes (
#! {IF_VARIABLE some_variable equals yes (
#! [then]
#! ...
#! [/then]