(tran_map): Set player->argp[0]. Required since bmap() was merged

into map() ca. 1995.  Fixes 'm' at test's move_ground() prompt.
Simplify clearing player->argp[2].  Don't clear beyond that.
This commit is contained in:
Markus Armbruster 2006-03-27 19:10:40 +00:00
parent 18bbcb2c9e
commit 1ddb87d235

View file

@ -345,17 +345,14 @@ move(void)
* If more commands start doing this, then * If more commands start doing this, then
* rewrite map to do the right thing. * rewrite map to do the right thing.
*/ */
/* I think this is no longer used, check subs/move.c:move_ground() */
/*ARGSUSED*/ /*ARGSUSED*/
static int static int
cmd_move_map(s_char *what, coord curx, coord cury, s_char *arg) cmd_move_map(s_char *what, coord curx, coord cury, s_char *arg)
{ {
player->argp[0] = "map";
player->argp[1] = arg; player->argp[1] = arg;
player->argp[2] = ""; player->argp[2] = NULL;
player->argp[3] = ""; player->condarg = NULL;
player->argp[4] = "";
player->argp[5] = "";
player->condarg = 0;
return map(); return map();
} }