Use correct variables, not where we are trying to go

This commit is contained in:
Pasi Kallinen
2024-12-18 10:35:54 +02:00
parent f32e766728
commit faf2267aba

View File

@@ -1075,7 +1075,7 @@ test_move(
&& !Confusion && !Stunned && !Fumbling) {
(void) doopen_indir(x, y);
svc.context.door_opened = !closed_door(x, y);
svc.context.move = (x != u.ux || y != u.uy);
svc.context.move = (ux != u.ux || uy != u.uy);
} else if (x == ux || y == uy) {
if (Blind || Stunned || ACURR(A_DEX) < 10
|| Fumbling) {