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

into map() ca. 1995.  Clear player->argp[2].  Required since map
acquired its second argument in the early 90s.  Fixes 'm' at
transport's move_ground() prompt.
This commit is contained in:
Markus Armbruster 2006-03-27 19:00:42 +00:00
parent 2ff3fe97a2
commit 18bbcb2c9e

View file

@ -283,12 +283,13 @@ tran_plane(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
tran_map(s_char *what, coord curx, coord cury, s_char *arg) tran_map(s_char *what, coord curx, coord cury, s_char *arg)
{ {
player->argp[0] = "map";
player->argp[1] = arg; player->argp[1] = arg;
player->condarg = 0; player->argp[2] = NULL;
player->condarg = NULL;
return map(); return map();
} }