From 1e6c04a34e35c8d3cf164482d9a4ad1d88b9bb94 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 23 Aug 2008 13:14:18 -0400 Subject: [PATCH] Fix move_ground() to pass coordinate arguments normalized move_ground() passes curx, cury to various functions that should probably be called with normalized coordinate arguments. Make sure curx, cury are normalized. --- src/lib/subs/move.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/subs/move.c b/src/lib/subs/move.c index 938d3596..6e2570e5 100644 --- a/src/lib/subs/move.c +++ b/src/lib/subs/move.c @@ -206,8 +206,8 @@ move_ground(struct sctstr *start, struct sctstr *end, mobility -= sect_mcost; total_mcost += sect_mcost; } - curx = tmpx; - cury = tmpy; + curx = next.sct_x; + cury = next.sct_y; if (cury != start->sct_y) out = 1; if (curx != start->sct_x)