Doc & formatting fixes.

This commit is contained in:
Markus Armbruster 2005-05-30 15:03:24 +00:00
parent 18ee9a2f35
commit 1ec5767d5f
5 changed files with 3 additions and 6 deletions

View file

@ -159,7 +159,6 @@ sona(void)
memset(visbuf, 0, (WORLD_Y * (WORLD_X + 1)));
snxtitem_dist(&nit, EF_SHIP, ship.shp_x, ship.shp_y, range);
while (nxtitem(&nit, &targ)) {
if (targ.shp_own == player->cnum || targ.shp_own == 0)
continue;
tmcp = &mchr[(int)targ.shp_type];

View file

@ -70,7 +70,7 @@ stmtch(char *needle, void *haystack, ptrdiff_t offs, size_t elt_size)
/*
* Compare A with B.
* Return ME_EXACT if they are the same, or A is a prefix of B
* followed by a space.
* followed by a space in B.
* Return ME_PARTIAL if A is a prefix of B not followed by a space.
* Else return ME_NOMATCH.
*/

View file

@ -79,7 +79,6 @@ player_init(void)
emp_initque(&Players);
init_player_commands();
sp = getservbyname("empire", "tcp");
if (sp == 0)
port = htons(atoi(loginport));

View file

@ -104,8 +104,8 @@ player_main(struct player *p)
nat_last_logout) : "?");
pr(" by: %s@%s\n",
*natp->nat_userid ? natp->nat_userid : "nobody",
*natp->nat_hostname ? natp->nat_hostname : *natp->
nat_hostaddr ? natp->nat_hostaddr : "nowhere");
*natp->nat_hostname ? natp->nat_hostname
: *natp->nat_hostaddr ? natp->nat_hostaddr : "nowhere");
}
}
if (*player->userid)

View file

@ -69,7 +69,6 @@ nxtitemp(struct nstr_item *np)
case NS_LIST:
break;
case NS_ALL:
/* XXX maybe combine NS_LIST and NS_ALL later */
break;
case NS_DIST:
if (!xyinrange(gp->x, gp->y, &np->range)) {