(WORLD_SZ): New.
(isok, ef_init, bmaps_intersect, bp_init, player_accept) (finish_sects, main): Use it. (bp_neighbors, bp_lbcost, pathcost): Use XYOFFSET(). No functional change.
This commit is contained in:
parent
e24b608dc6
commit
56de7a2151
8 changed files with 18 additions and 16 deletions
|
@ -219,9 +219,9 @@ player_accept(void *unused)
|
|||
if (NULL != hostp)
|
||||
strcpy(np->hostname, hostp->h_name);
|
||||
#endif /* RESOLVE_IPADDRESS */
|
||||
/* XXX may not be big enough */
|
||||
/* FIXME ancient black magic; figure out true stack need */
|
||||
stacksize = 100000
|
||||
/* budget */ + MAX(WORLD_X * WORLD_Y / 2 * sizeof(int) * 7,
|
||||
/* budget */ + MAX(WORLD_SZ() * sizeof(int) * 7,
|
||||
/* power */ MAXNOC * sizeof(struct powstr));
|
||||
sprintf(buf, "Player (fd #%d)", ns);
|
||||
empth_create(player_login, stacksize, 0, buf, np);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue