Doc & formatting fixes.
This commit is contained in:
parent
18ee9a2f35
commit
1ec5767d5f
5 changed files with 3 additions and 6 deletions
|
@ -159,7 +159,6 @@ sona(void)
|
||||||
memset(visbuf, 0, (WORLD_Y * (WORLD_X + 1)));
|
memset(visbuf, 0, (WORLD_Y * (WORLD_X + 1)));
|
||||||
snxtitem_dist(&nit, EF_SHIP, ship.shp_x, ship.shp_y, range);
|
snxtitem_dist(&nit, EF_SHIP, ship.shp_x, ship.shp_y, range);
|
||||||
while (nxtitem(&nit, &targ)) {
|
while (nxtitem(&nit, &targ)) {
|
||||||
|
|
||||||
if (targ.shp_own == player->cnum || targ.shp_own == 0)
|
if (targ.shp_own == player->cnum || targ.shp_own == 0)
|
||||||
continue;
|
continue;
|
||||||
tmcp = &mchr[(int)targ.shp_type];
|
tmcp = &mchr[(int)targ.shp_type];
|
||||||
|
|
|
@ -70,7 +70,7 @@ stmtch(char *needle, void *haystack, ptrdiff_t offs, size_t elt_size)
|
||||||
/*
|
/*
|
||||||
* Compare A with B.
|
* Compare A with B.
|
||||||
* Return ME_EXACT if they are the same, or A is a prefix of 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.
|
* Return ME_PARTIAL if A is a prefix of B not followed by a space.
|
||||||
* Else return ME_NOMATCH.
|
* Else return ME_NOMATCH.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -79,7 +79,6 @@ player_init(void)
|
||||||
emp_initque(&Players);
|
emp_initque(&Players);
|
||||||
init_player_commands();
|
init_player_commands();
|
||||||
|
|
||||||
|
|
||||||
sp = getservbyname("empire", "tcp");
|
sp = getservbyname("empire", "tcp");
|
||||||
if (sp == 0)
|
if (sp == 0)
|
||||||
port = htons(atoi(loginport));
|
port = htons(atoi(loginport));
|
||||||
|
|
|
@ -104,8 +104,8 @@ player_main(struct player *p)
|
||||||
nat_last_logout) : "?");
|
nat_last_logout) : "?");
|
||||||
pr(" by: %s@%s\n",
|
pr(" by: %s@%s\n",
|
||||||
*natp->nat_userid ? natp->nat_userid : "nobody",
|
*natp->nat_userid ? natp->nat_userid : "nobody",
|
||||||
*natp->nat_hostname ? natp->nat_hostname : *natp->
|
*natp->nat_hostname ? natp->nat_hostname
|
||||||
nat_hostaddr ? natp->nat_hostaddr : "nowhere");
|
: *natp->nat_hostaddr ? natp->nat_hostaddr : "nowhere");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (*player->userid)
|
if (*player->userid)
|
||||||
|
|
|
@ -69,7 +69,6 @@ nxtitemp(struct nstr_item *np)
|
||||||
case NS_LIST:
|
case NS_LIST:
|
||||||
break;
|
break;
|
||||||
case NS_ALL:
|
case NS_ALL:
|
||||||
/* XXX maybe combine NS_LIST and NS_ALL later */
|
|
||||||
break;
|
break;
|
||||||
case NS_DIST:
|
case NS_DIST:
|
||||||
if (!xyinrange(gp->x, gp->y, &np->range)) {
|
if (!xyinrange(gp->x, gp->y, &np->range)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue