Try to prevent the terrain_type -> terrain_type_type error.
This commit is contained in:
parent
c99824ebb4
commit
2df2c2a467
1 changed files with 1 additions and 1 deletions
|
@ -1389,7 +1389,7 @@ def hack_syntax(filename, lines):
|
|||
if "[/standing_anim]" in lines[i]:
|
||||
in_standing_anim = False
|
||||
if in_standing_anim:
|
||||
lines[i] = re.sub(r"terrain", "terrain_type", lines[i])
|
||||
lines[i] = re.sub(r"terrain([^_])", r"terrain_type\1", lines[i])
|
||||
# More syntax transformations would go here.
|
||||
return lines
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue