Revert "(move_ground): Passed junk to map callback when 'm' sub-command"

It ignores all embedded space, not just trailing space after 'm'.

This reverts commit f65b255d18.
This commit is contained in:
Markus Armbruster 2011-04-10 14:51:03 +02:00
parent d59e19f5c2
commit 40cfb41b4e

View file

@ -168,10 +168,10 @@ move_ground(struct sctstr *start, struct sctstr *end,
*movstr = 0; *movstr = 0;
continue; continue;
} }
do movstr++; while (isspace(*movstr)); movstr++;
if (dir == DIR_MAP) { if (dir == DIR_MAP) {
if (!exploring) if (!exploring)
map(curx, cury, movstr); map(curx, cury, movstr + 1);
*movstr = 0; *movstr = 0;
continue; continue;
} else if (dir == DIR_STOP) } else if (dir == DIR_STOP)