Improved some details.
This commit is contained in:
parent
b8369e0bf8
commit
a11fe04cb1
1 changed files with 5 additions and 1 deletions
|
@ -43,8 +43,12 @@ def berechneflugbahn(cow, xmin, xmax, ymin, ymax, startwinkel, startgeschwindigk
|
||||||
if y <= ymax and y >= ymin:
|
if y <= ymax and y >= ymin:
|
||||||
# Stash away the coordinates into scala, which will be returned
|
# Stash away the coordinates into scala, which will be returned
|
||||||
scala += [x, int((y * 100 + 50) / 100)]
|
scala += [x, int((y * 100 + 50) / 100)]
|
||||||
|
|
||||||
|
elif y <= ymin:
|
||||||
|
scala += [x, ymin]
|
||||||
|
|
||||||
else:
|
else:
|
||||||
scala += [0, 0]
|
scala += [x, ymax]
|
||||||
|
|
||||||
xold = x
|
xold = x
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue