]> git.pond.sub.org Git - empserver/commitdiff
(tran_map): Set player->argp[0]. Required since bmap() was merged
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 27 Mar 2006 19:10:40 +0000 (19:10 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 27 Mar 2006 19:10:40 +0000 (19:10 +0000)
into map() ca. 1995.  Fixes 'm' at test's move_ground() prompt.
Simplify clearing player->argp[2].  Don't clear beyond that.

src/lib/commands/move.c

index dcd386daca41d77dcb58df8fb68f47b9c28e7803..2e5556b879a0cdf99005417e77cf9e761da82a9b 100644 (file)
@@ -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();
 }