into map() ca. 1995. Fixes 'm' at test's move_ground() prompt.
Simplify clearing player->argp[2]. Don't clear beyond that.
* If more commands start doing this, then
* rewrite map to do the right thing.
*/
-/* I think this is no longer used, check subs/move.c:move_ground() */
/*ARGSUSED*/
static int
cmd_move_map(s_char *what, coord curx, coord cury, s_char *arg)
{
+ player->argp[0] = "map";
player->argp[1] = arg;
- player->argp[2] = "";
- player->argp[3] = "";
- player->argp[4] = "";
- player->argp[5] = "";
- player->condarg = 0;
+ player->argp[2] = NULL;
+ player->condarg = NULL;
return map();
}