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

wasn't followed by an argument.
This commit is contained in:
Ron Koenderink 2006-07-09 16:55:40 +00:00
parent 00f2f36b2c
commit f65b255d18

View file

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