Archived
1
0
Fork 0

Fixed bug in the handling of end command failure

This commit is contained in:
Julien Dessaux 2022-08-09 22:52:09 +02:00
parent 712e79c6e8
commit e431feb6cb
Signed by: adyxax
GPG key ID: F92E51B86E07177E

View file

@ -178,7 +178,8 @@ proc Eval(p: var Pointer, f: var Field, c: int): (bool, ref int) =
var v: tuple[x, y: int]
if p.ss[].End(v):
p.Reverse()
p.sox = v.x; p.soy = v.y
else:
p.sox = v.x; p.soy = v.y
of int('u'):
if p.ss[].Under():
p.Reverse()