error on bad rotation specification
This commit is contained in:
parent
8aa4be6f9d
commit
2e0477b4be
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue