(rada): Replace the "unit" text with "land" to be more clear.

This commit is contained in:
Ron Koenderink 2006-08-04 19:59:24 +00:00
parent 90ff9ae2b0
commit db541d9b9b

View file

@ -49,12 +49,12 @@ rada(void)
union empobj_storage item; union empobj_storage item;
char buf[1024]; char buf[1024];
short type; short type;
char prompt[80];
type = player->argp[0][0] == 'l' ? EF_LAND : EF_SHIP; type = player->argp[0][0] == 'l' ? EF_LAND : EF_SHIP;
cp = getstarg(player->argp[1], sprintf(prompt, "Radar from (%s # or sector(s)) : ", ef_nameof(type));
type == EF_SHIP ? "Radar from (ship # or sector(s)) : " : cp = getstarg(player->argp[1], prompt, buf);
"Radar from (unit # or sector(s)) : ", buf);
if (cp == 0) if (cp == 0)
return RET_SYN; return RET_SYN;
@ -80,8 +80,7 @@ rada(void)
case NS_GROUP: case NS_GROUP:
/* assumes a NS_LIST return is a unit no */ /* assumes a NS_LIST return is a unit no */
if (!snxtitem(&ni, type, cp)) { if (!snxtitem(&ni, type, cp)) {
pr("Specify at least one %s\n", pr("Specify at least one %s\n", ef_nameof(type));
type == EF_SHIP ? "ship" : "unit");
return RET_SYN; return RET_SYN;
} }
while (nxtitem(&ni, &item)) { while (nxtitem(&ni, &item)) {
@ -115,8 +114,7 @@ rada(void)
} }
break; break;
default: default:
pr("Must use a %s or sector specifier\n", pr("Must use a %s or sector specifier\n", ef_nameof(type));
type == EF_SHIP ? "ship" : "unit");
return RET_SYN; return RET_SYN;
} }
return RET_OK; return RET_OK;