(move_ground): Passed junk to map callback when 'm' sub-command
wasn't followed by an argument.
This commit is contained in:
parent
00f2f36b2c
commit
f65b255d18
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue