New lifting code for archaic syntaxes does nothing (as it should) on

current mainline WML.
This commit is contained in:
Eric S. Raymond 2007-10-02 02:54:53 +00:00
parent 16d26f430f
commit a8f48da8ea

View file

@ -772,6 +772,7 @@ def hack_syntax(filename, lines):
print '"%s", line %d: converting [animation] in [effect] '%(filename, i+1)
ws = leader(lines[i])
outer = outdent(ws)
assert attackname != None
insertion = outer + "[/effect]\n" \
+ outer + "[effect]\n" \
+ ws + "apply_to=new_animation\n" \
@ -804,7 +805,8 @@ def hack_syntax(filename, lines):
comment = fields[1]
if syntactic.strip().startswith("name"):
attackname = syntactic.split("=")[1].strip()
elif "[frame]" in lines[i] and converting == 0:
elif "[frame]" in lines[i] and in_attack and converting == 0:
assert attackname != None
print '"%s", line %d: converting [frame] in [attack] '%(filename, i+1)
ws = leader(lines[i])
outer = outdent(ws)