(move_ground): Drop first parameter of map callback, it's not used.
Callers changed. s_char purge.
This commit is contained in:
parent
06b669924a
commit
a1ce7db238
5 changed files with 41 additions and 42 deletions
|
@ -47,7 +47,7 @@
|
|||
#include "commands.h"
|
||||
|
||||
|
||||
static int cmd_move_map(s_char *what, coord curx, coord cury, s_char *arg);
|
||||
static int cmd_move_map(coord curx, coord cury, char *arg);
|
||||
|
||||
int
|
||||
move(void)
|
||||
|
@ -72,9 +72,9 @@ move(void)
|
|||
int istest = 0;
|
||||
int n;
|
||||
coord x, y;
|
||||
s_char *p;
|
||||
s_char prompt[1024];
|
||||
s_char buf[1024];
|
||||
char *p;
|
||||
char prompt[1024];
|
||||
char buf[1024];
|
||||
|
||||
|
||||
istest = *player->argp[0] == 't';
|
||||
|
@ -188,8 +188,7 @@ move(void)
|
|||
dam = (istest ? 0 : 1);
|
||||
if (dam && !chance(weight / 200.0))
|
||||
dam = 0;
|
||||
mcost = move_ground((s_char *)ip, §, &endsect,
|
||||
weight, player->argp[4],
|
||||
mcost = move_ground(§, &endsect, weight, player->argp[4],
|
||||
cmd_move_map, 0, &dam);
|
||||
|
||||
if (dam) {
|
||||
|
@ -347,7 +346,7 @@ move(void)
|
|||
*/
|
||||
/*ARGSUSED*/
|
||||
static int
|
||||
cmd_move_map(s_char *what, coord curx, coord cury, s_char *arg)
|
||||
cmd_move_map(coord curx, coord cury, char *arg)
|
||||
{
|
||||
player->argp[0] = "map";
|
||||
player->argp[1] = arg;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue