error on bad rotation specification

This commit is contained in:
Lephenixnoir 2021-08-22 01:23:28 +02:00
parent 8aa4be6f9d
commit 2e0477b4be
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@ def convert_level(input, output, params, target):
r = r.strip().split()
shape, action, position = -1, 0, -1
# Anti-bad-notation
if "middle" in r and "rotate" in r and ("left" in r or "right" in r):
raise fxconv.FxconvError("Bad rotation in '" + " ".join(r) + "'")
# Shape
if "square" in r:
shape = 0