]> git.pond.sub.org Git - empserver/commitdiff
Revert "(move_ground): Passed junk to map callback when 'm' sub-command"
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 10 Apr 2011 12:51:03 +0000 (14:51 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 14 Apr 2011 18:21:23 +0000 (20:21 +0200)
It ignores all embedded space, not just trailing space after 'm'.

This reverts commit f65b255d1871ea0a1fa87d6d87c527566e108b87.

src/lib/subs/move.c

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