mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-26 09:58:20 +01:00
Don't bother calculating gameID as common code does it.
This commit is contained in:
parent
85f9ac8598
commit
f1e27d4945
1 changed files with 3 additions and 5 deletions
|
@ -1219,9 +1219,8 @@ startApplication( PalmAppGlobals** globalsP )
|
|||
globals->gameInfo.dictName = copyString( globals->mpool,
|
||||
dlep->baseName );
|
||||
|
||||
gameID = TimGetSeconds();
|
||||
game_makeNewGame( MEMPOOL &globals->game, &globals->gameInfo,
|
||||
&globals->util, globals->draw, gameID,
|
||||
&globals->util, globals->draw, 0,
|
||||
&globals->gState.cp,
|
||||
palm_send, IF_CH(palm_reset) globals );
|
||||
FrmPopupForm( XW_NEWGAMES_FORM );
|
||||
|
@ -2018,9 +2017,8 @@ initAndStartBoard( PalmAppGlobals* globals, XP_Bool newGame )
|
|||
}
|
||||
|
||||
if ( newGame ) {
|
||||
XP_U32 newGameID = TimGetSeconds();
|
||||
game_reset( MEMPOOL &globals->game, &globals->gameInfo,
|
||||
&globals->util, newGameID, &globals->gState.cp,
|
||||
&globals->util, 0, &globals->gState.cp,
|
||||
palm_send, IF_CH(palm_reset) globals );
|
||||
#ifndef XWFEATURE_STANDALONE_ONLY
|
||||
if ( !!globals->game.comms ) {
|
||||
|
@ -2587,7 +2585,7 @@ mainViewHandleEvent( EventPtr event )
|
|||
writeNameToGameRecord( globals, globals->gState.curGameIndex,
|
||||
newName, XP_STRLEN(newName) );
|
||||
globals->isFirstLaunch = false; /* so we'll save the game */
|
||||
|
||||
/* FALLTHRU */
|
||||
case loadGameEvent:
|
||||
XP_ASSERT( !!globals->game.server );
|
||||
initAndStartBoard( globals, event->eType == newGameOkEvent );
|
||||
|
|
Loading…
Reference in a new issue