(player_new, player_accept, update_wait, market_update) [_WIN32]:
Move assignment of hostaddr and hostname from player_new() to player_accept(). This solves the necessary of adding the socket include file to prototypes.h for player_new(). The socket include file creates a namespace conflict for WIN32.
This commit is contained in:
parent
9dfbf74785
commit
233181c50d
4 changed files with 16 additions and 16 deletions
|
@ -72,7 +72,7 @@ market_update(void *unused)
|
|||
while (1) {
|
||||
time(&now);
|
||||
/* logerror("Checking the world markets at %s", ctime(&now));*/
|
||||
dp = player_new(0, 0);
|
||||
dp = player_new(-1);
|
||||
if (dp) {
|
||||
empth_create(PP_UPDATE, check_all_markets, (50 * 1024), 0,
|
||||
"MarketCheck", "Checks the world markets", dp);
|
||||
|
|
|
@ -147,7 +147,7 @@ update_wait(void *unused)
|
|||
* we rely on the fact that update's priority is the highest
|
||||
* in the land so it can finish before it yields.
|
||||
*/
|
||||
dp = player_new(0, 0);
|
||||
dp = player_new(-1);
|
||||
if (!dp) {
|
||||
logerror("can't create dummy player for update");
|
||||
update_pending = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue