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:
Markus Armbruster 2005-12-28 22:21:42 +00:00
parent 6fdbf215d0
commit 24a07cd249
9 changed files with 15 additions and 15 deletions

View file

@ -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;