(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:
parent
18bbcb2c9e
commit
1ddb87d235
1 changed files with 3 additions and 6 deletions
|
@ -345,17 +345,14 @@ move(void)
|
|||
* 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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue