player.h rev. 1.9 changed struct player member argp to char *. The
changeset failed to adapt some s_char * operands. Fix.
This commit is contained in:
parent
6fdbf215d0
commit
24a07cd249
9 changed files with 15 additions and 15 deletions
|
@ -61,10 +61,10 @@ retr(void)
|
|||
if (!snxtitem(&ni, EF_SHIP, player->argp[1]))
|
||||
return RET_SYN;
|
||||
nships = 0;
|
||||
if (player->argp[1] != (s_char *)0)
|
||||
if (player->argp[1] != NULL)
|
||||
if (isalpha(player->argp[1][0]))
|
||||
isfleet = RET_GROUP;
|
||||
if (player->argp[2] != (s_char *)0)
|
||||
if (player->argp[2] != NULL)
|
||||
pq = getstarg(player->argp[2], "Retreat path? ", buf1);
|
||||
else
|
||||
pq = (s_char *)0;
|
||||
|
@ -209,10 +209,10 @@ lretr(void)
|
|||
if (!snxtitem(&ni, EF_LAND, player->argp[1]))
|
||||
return RET_SYN;
|
||||
nunits = 0;
|
||||
if (player->argp[1] != (s_char *)0)
|
||||
if (player->argp[1] != NULL)
|
||||
if (isalpha(player->argp[1][0]))
|
||||
isarmy = RET_GROUP;
|
||||
if (player->argp[2] != (s_char *)0)
|
||||
if (player->argp[2] != NULL)
|
||||
pq = getstarg(player->argp[2], "Retreat path? ", buf1);
|
||||
else
|
||||
pq = (s_char *)0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue