]> git.pond.sub.org Git - empserver/commitdiff
(move_ground): Passed junk to map callback when 'm' sub-command
authorRon Koenderink <rkoenderink@yahoo.ca>
Sun, 9 Jul 2006 16:55:40 +0000 (16:55 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Sun, 9 Jul 2006 16:55:40 +0000 (16:55 +0000)
wasn't followed by an argument.

src/lib/subs/move.c

index 52aa893337d7e488d2cfe7bd1fd4018bad439ab2..36245b35074c4a3b20a5902a86f4806f7aabbc69 100644 (file)
@@ -158,10 +158,10 @@ move_ground(struct sctstr *start, struct sctstr *end,
            *movstr = 0;
            continue;
        }
-       movstr++;
+       do  movstr++; while (isspace(*movstr));
        if (dir == DIR_MAP) {
            if (!exploring)
-               map(curx, cury, movstr + 1);
+               map(curx, cury, movstr);
            *movstr = 0;
            continue;
        } else if (dir == DIR_STOP)