If platform doesn't provide a game id, use current seconds.

This commit is contained in:
ehouse 2009-02-07 18:12:46 +00:00
parent d4de570358
commit 5c2f7496b8

View file

@ -127,6 +127,9 @@ game_reset( MPFORMAL XWGame* game, CurGameInfo* gi,
XP_ASSERT( !!gi ); XP_ASSERT( !!gi );
checkServerRole( gi, &nPlayersHere, &nPlayersTotal ); checkServerRole( gi, &nPlayersHere, &nPlayersTotal );
while ( 0 == gameID ) {
gameID = util_getCurSeconds( util );
}
gi->gameID = gameID; gi->gameID = gameID;
#ifndef XWFEATURE_STANDALONE_ONLY #ifndef XWFEATURE_STANDALONE_ONLY