mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
fix endienness problem for game id
This commit is contained in:
parent
b7f847194e
commit
80cc53eb11
1 changed files with 3 additions and 3 deletions
|
@ -920,8 +920,8 @@ client_readInitialMessage( ServerCtxt* server, XWStreamCtxt* stream )
|
|||
}
|
||||
stream_setVersion( stream, streamVersion );
|
||||
|
||||
gameID = stream_getBits( stream, 32 );
|
||||
XP_STATUSF( "read gameID of %ld; calling comms_setConnID", gameID );
|
||||
gameID = stream_getU32( stream );
|
||||
XP_STATUSF( "read gameID of %lx; calling comms_setConnID", gameID );
|
||||
server->vol.gi->gameID = gameID;
|
||||
comms_setConnID( server->vol.comms, gameID );
|
||||
|
||||
|
@ -1057,7 +1057,7 @@ server_sendInitialMessage( ServerCtxt* server )
|
|||
/* write version for server's benefit */
|
||||
stream_putU8( stream, CUR_STREAM_VERS );
|
||||
|
||||
XP_STATUSF( "putting gameID %ld into msg", gameID );
|
||||
XP_STATUSF( "putting gameID %lx into msg", gameID );
|
||||
stream_putU32( stream, gameID );
|
||||
|
||||
makeSendableGICopy( server, &localGI, deviceIndex );
|
||||
|
|
Loading…
Reference in a new issue