Lift [missile_frame] directly within [attack].

This commit is contained in:
Eric S. Raymond 2007-10-02 22:26:15 +00:00
parent d33f5ae715
commit 6b48eeb170

View file

@ -801,9 +801,9 @@ def hack_syntax(filename, lines):
lines[i] = lines[i].replace("/attack", "/attack_anim")
converting = 0
in_attack = False
elif "[frame]" in lines[i] and in_attack and converting == 0:
elif ("[frame]" in lines[i] or "[missile_frame]" in lines[i]) and in_attack and converting == 0:
assert attackname != None
print '"%s", line %d: converting [frame] in [attack] '%(filename, i+1)
print '"%s", line %d: converting frame in [attack] '%(filename, i+1)
ws = leader(lines[i])
outer = outdent(ws)
insertion = outer + "[/attack]\n" \