Skip to content

Commit

Permalink
UtBS S08: Fixed crash/error when the human patrol appears
Browse files Browse the repository at this point in the history
The armor shift IPF should have been in quotes, but wasn't, causing the + signs to break the formula.
  • Loading branch information
ln-zookeeper committed Jun 2, 2017
1 parent 24eb4bc commit 1895adc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/campaigns/Under_the_Burning_Suns/utils/macros.cfg
Expand Up @@ -113,7 +113,7 @@
if(red <= green and green <= blue + 3, ({NEWCHAN} / 255.0)^2 * 255.0, {ORIGCHAN})#enddef

#define ARMOR_SHIFT_IPF
CHAN({ARMOR_SHIFT blue red}, {ARMOR_SHIFT green green}, {ARMOR_SHIFT red blue})#enddef
"CHAN({ARMOR_SHIFT blue red}, {ARMOR_SHIFT green green}, {ARMOR_SHIFT red blue})"#enddef

#define LOYALIST_COLOR_SHIFT
[event]
Expand Down Expand Up @@ -144,7 +144,7 @@ CHAN({ARMOR_SHIFT blue red}, {ARMOR_SHIFT green green}, {ARMOR_SHIFT red blue})#

[effect]
apply_to=image_mod
add="{ARMOR_SHIFT_IPF}"
add={ARMOR_SHIFT_IPF}
[/effect]
[/object]
[/event]
Expand Down

0 comments on commit 1895adc

Please sign in to comment.