From 18bbcb2c9e62055ea1d39d3c61ed87840d66e7a1 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 27 Mar 2006 19:00:42 +0000 Subject: [PATCH] (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. --- src/lib/commands/tran.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/commands/tran.c b/src/lib/commands/tran.c index ab2db00f..4a7e82f2 100644 --- a/src/lib/commands/tran.c +++ b/src/lib/commands/tran.c @@ -283,12 +283,13 @@ tran_plane(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 tran_map(s_char *what, coord curx, coord cury, s_char *arg) { + player->argp[0] = "map"; player->argp[1] = arg; - player->condarg = 0; + player->argp[2] = NULL; + player->condarg = NULL; return map(); }