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];
/*
* 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.
*/
emp_initque(&Players);
init_player_commands();
-
sp = getservbyname("empire", "tcp");
if (sp == 0)
port = htons(atoi(loginport));
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)
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)) {