mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
don't exclude BEYOND_IR-only fields
This commit is contained in:
parent
cb05850fe3
commit
b10ca04e07
1 changed files with 6 additions and 2 deletions
|
@ -82,7 +82,9 @@ struct CommsCtxt {
|
||||||
MsgQueueElem* msgQueueTail;
|
MsgQueueElem* msgQueueTail;
|
||||||
XP_U16 queueLen;
|
XP_U16 queueLen;
|
||||||
|
|
||||||
#ifdef BEYOND_IR
|
/* The following fields, down to isServer, are only used if BEYOND_IR is
|
||||||
|
defined, but I'm leaving them in here so apps built both ways can open
|
||||||
|
each saved games files.*/
|
||||||
CommsAddrRec addr;
|
CommsAddrRec addr;
|
||||||
|
|
||||||
/* Stuff for relays */
|
/* Stuff for relays */
|
||||||
|
@ -101,7 +103,7 @@ struct CommsCtxt {
|
||||||
XP_U16 heartbeat;
|
XP_U16 heartbeat;
|
||||||
XP_U16 nPlayersHere;
|
XP_U16 nPlayersHere;
|
||||||
XP_U16 nPlayersTotal;
|
XP_U16 nPlayersTotal;
|
||||||
#endif
|
|
||||||
XP_Bool isServer;
|
XP_Bool isServer;
|
||||||
XP_Bool connecting;
|
XP_Bool connecting;
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
@ -148,12 +150,14 @@ comms_make( MPFORMAL XW_UtilCtxt* util, XP_Bool isServer,
|
||||||
result->sendClosure = closure;
|
result->sendClosure = closure;
|
||||||
result->util = util;
|
result->util = util;
|
||||||
|
|
||||||
|
#ifdef BEYOND_IR
|
||||||
result->myHostID = isServer? HOST_ID_SERVER: HOST_ID_NONE;
|
result->myHostID = isServer? HOST_ID_SERVER: HOST_ID_NONE;
|
||||||
XP_LOGF( "set myHostID to %d", result->myHostID );
|
XP_LOGF( "set myHostID to %d", result->myHostID );
|
||||||
|
|
||||||
result->relayState = COMMS_RELAYSTATE_UNCONNECTED;
|
result->relayState = COMMS_RELAYSTATE_UNCONNECTED;
|
||||||
result->nPlayersHere = nPlayersHere;
|
result->nPlayersHere = nPlayersHere;
|
||||||
result->nPlayersTotal = nPlayersTotal;
|
result->nPlayersTotal = nPlayersTotal;
|
||||||
|
#endif
|
||||||
return result;
|
return result;
|
||||||
} /* comms_make */
|
} /* comms_make */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue