mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-28 07:58:08 +01:00
Fix to compile and run standalone
This commit is contained in:
parent
6e9e5b5c99
commit
f90b6d35e8
2 changed files with 15 additions and 9 deletions
|
@ -62,7 +62,11 @@ static void considerEnableJuggle( NewGameCtx* ngc );
|
|||
static void storePlayer( NewGameCtx* ngc, XP_U16 player, LocalPlayer* lp );
|
||||
static void loadPlayer( NewGameCtx* ngc, XP_U16 player,
|
||||
const LocalPlayer* lp );
|
||||
#ifndef XWFEATURE_STANDALONE_ONLY
|
||||
static XP_Bool checkConsistent( NewGameCtx* ngc, XP_Bool warnUser );
|
||||
#else
|
||||
# define checkConsistent( ngc, warnUser ) XP_TRUE
|
||||
#endif
|
||||
|
||||
NewGameCtx*
|
||||
newg_make( MPFORMAL XP_Bool isNewGame,
|
||||
|
@ -325,6 +329,7 @@ newg_juggle( NewGameCtx* ngc )
|
|||
return changed;
|
||||
} /* newg_juggle */
|
||||
|
||||
#ifndef XWFEATURE_STANDALONE_ONLY
|
||||
static XP_Bool
|
||||
checkConsistent( NewGameCtx* ngc, XP_Bool warnUser )
|
||||
{
|
||||
|
@ -350,6 +355,7 @@ checkConsistent( NewGameCtx* ngc, XP_Bool warnUser )
|
|||
|
||||
return consistent;
|
||||
} /* checkConsistent */
|
||||
#endif
|
||||
|
||||
static void
|
||||
enableOne( NewGameCtx* ngc, XP_U16 player, NewGameColumn col,
|
||||
|
|
|
@ -2108,6 +2108,15 @@ tileCountsOk( ServerCtxt* server )
|
|||
return !maybeOver;
|
||||
} /* tileCountsOk */
|
||||
|
||||
static void
|
||||
setTurn( ServerCtxt* server, XP_S16 turn )
|
||||
{
|
||||
if ( server->nv.currentTurn != turn ) {
|
||||
server->nv.currentTurn = turn;
|
||||
callTurnChangeListener( server );
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef XWFEATURE_STANDALONE_ONLY
|
||||
static void
|
||||
tellMoveWasLegal( ServerCtxt* server )
|
||||
|
@ -2119,15 +2128,6 @@ tellMoveWasLegal( ServerCtxt* server )
|
|||
stream_destroy( stream );
|
||||
} /* tellMoveWasLegal */
|
||||
|
||||
static void
|
||||
setTurn( ServerCtxt* server, XP_S16 turn )
|
||||
{
|
||||
if ( server->nv.currentTurn != turn ) {
|
||||
server->nv.currentTurn = turn;
|
||||
callTurnChangeListener( server );
|
||||
}
|
||||
}
|
||||
|
||||
static XP_Bool
|
||||
handleIllegalWord( ServerCtxt* server, XWStreamCtxt* incoming )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue