mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-14 08:01:38 +01:00
Remove all tabs. No code changes.
This commit is contained in:
parent
2dceb054b8
commit
e60d338488
35 changed files with 221 additions and 229 deletions
|
@ -137,7 +137,7 @@ struct BoardCtxt {
|
|||
XP_Bool eraseTray;
|
||||
XP_Bool boardObscuresTray;
|
||||
XP_Bool boardHidesTray;
|
||||
XP_Bool scoreSplitHor; /* how to divide the scoreboard? */
|
||||
XP_Bool scoreSplitHor;/* how to divide the scoreboard? */
|
||||
|
||||
XP_U16 star_row;
|
||||
|
||||
|
|
|
@ -565,9 +565,6 @@ findMovesOneRow( EngineCtxt* engine )
|
|||
&engine->scoreCache[col],
|
||||
&engine->rowChecks[col]);
|
||||
}
|
||||
|
||||
/* XP_DEBUGF( "row %d: set scoreCache[%d] to %d\n", row, col, */
|
||||
/* engine->scoreCache[col] ); */
|
||||
}
|
||||
|
||||
prevAnchor = firstSearchCol - 1;
|
||||
|
@ -1056,7 +1053,8 @@ considerMove( EngineCtxt* engine, Tile* tiles, XP_S16 tileLength,
|
|||
== EMPTY_TILE ) {
|
||||
posmove.moveInfo.tiles[posmove.moveInfo.nTiles].tile =
|
||||
tiles[posmove.moveInfo.nTiles];
|
||||
posmove.moveInfo.tiles[posmove.moveInfo.nTiles].varCoord = (XP_U8)col;
|
||||
posmove.moveInfo.tiles[posmove.moveInfo.nTiles].varCoord
|
||||
= (XP_U8)col;
|
||||
++posmove.moveInfo.nTiles;
|
||||
}
|
||||
}
|
||||
|
@ -1094,11 +1092,9 @@ considerScoreWordHasBlanks( EngineCtxt* engine, XP_U16 blanksLeft,
|
|||
for ( i = 0; i < usedBlanksCount; ++i ) {
|
||||
short col = usedBlanks[i].col;
|
||||
posmove->blankVals[col] = usedBlanks[i].tile;
|
||||
/* posmove->whichBlanks |= (1 << col); */
|
||||
}
|
||||
XP_ASSERT( posmove->moveInfo.isHorizontal==
|
||||
engine->searchHorizontal );
|
||||
/* posmove->moveInfo.isHorizontal = engine->searchHorizontal; */
|
||||
posmove->moveInfo.commonCoord = (XP_U8)lastRow;
|
||||
saveMoveIfQualifies( engine, posmove );
|
||||
}
|
||||
|
|
|
@ -146,8 +146,6 @@ void model_moveTileOnBoard( ModelCtxt* model, XP_S16 turn, XP_U16 colCur,
|
|||
XP_S16 model_trayContains( ModelCtxt* model, XP_S16 turn, Tile tile );
|
||||
|
||||
|
||||
/* void model_setTile( ModelCtxt* model, XP_U16 col, XP_U16 row, */
|
||||
/* Tile tile, XP_Bool isBlank ); */
|
||||
XP_U16 model_numRows( const ModelCtxt* model );
|
||||
XP_U16 model_numCols( const ModelCtxt* model );
|
||||
|
||||
|
|
|
@ -40,10 +40,6 @@ static XP_U16 find_start( const ModelCtxt* model, XP_U16 col, XP_U16 row,
|
|||
static XP_S16 checkScoreMove( ModelCtxt* model, XP_S16 turn,
|
||||
EngineCtxt* engine, XWStreamCtxt* stream,
|
||||
XP_Bool silent, WordNotifierInfo* notifyInfo );
|
||||
/* static XP_U16 figureWordScore( ModelCtxt* model, MoveInfo* moveInfo, */
|
||||
/* EngineCtxt* engine, */
|
||||
/* XP_Bool silent, short moveMultiplier, */
|
||||
/* WordNotifierInfo* notifyInfo ); */
|
||||
static XP_U16 scoreWord( const ModelCtxt* model, MoveInfo* movei,
|
||||
EngineCtxt* engine, XWStreamCtxt* stream,
|
||||
WordNotifierInfo* notifyInfo, XP_UCHAR* mainWord );
|
||||
|
@ -407,7 +403,7 @@ isLegalMove( ModelCtxt* model, MoveInfo* mInfo, XP_Bool silent )
|
|||
return XP_TRUE;
|
||||
}
|
||||
}
|
||||
++*commonP; /* undo the decrement */
|
||||
++*commonP;/* undo the decrement */
|
||||
}
|
||||
/* ...and below */
|
||||
if ( commonCoord <= MAX_ROWS - 1 ) {
|
||||
|
@ -611,7 +607,8 @@ scoreWord( const ModelCtxt* model, MoveInfo* movei, /* new tiles */
|
|||
|
||||
if ( engine != NULL ) {
|
||||
XP_ASSERT( nTiles==1 );
|
||||
scoreFromCache = engine_getScoreCache( engine, movei->commonCoord );
|
||||
scoreFromCache = engine_getScoreCache( engine,
|
||||
movei->commonCoord );
|
||||
}
|
||||
|
||||
/* for a while, at least, calculate and use the cached crosscheck score
|
||||
|
|
|
@ -249,7 +249,8 @@ getNV( XWStreamCtxt* stream, ServerNonvolatiles* nv, XP_U16 nPlayers )
|
|||
nv->pendingRegistrations = (XP_U8)stream_getBits( stream, NPLAYERS_NBITS );
|
||||
|
||||
for ( i = 0; i < nPlayers; ++i ) {
|
||||
nv->addresses[i].channelNo = (XP_PlayerAddr)stream_getBits( stream, 16 );
|
||||
nv->addresses[i].channelNo = (XP_PlayerAddr)stream_getBits( stream,
|
||||
16 );
|
||||
}
|
||||
} /* getNV */
|
||||
|
||||
|
@ -2301,24 +2302,24 @@ server_receiveMessage( ServerCtxt* server, XWStreamCtxt* incoming )
|
|||
} else if ( readStreamHeader( server, incoming ) ) {
|
||||
|
||||
switch( code ) {
|
||||
/* case XWPROTO_MOVEMADE_INFO: */
|
||||
/* accepted = client_reflectMoveMade( server, incoming ); */
|
||||
/* if ( accepted ) { */
|
||||
/* nextTurn( server ); */
|
||||
/* } */
|
||||
/* break; */
|
||||
/* case XWPROTO_TRADEMADE_INFO: */
|
||||
/* accepted = client_reflectTradeMade( server, incoming ); */
|
||||
/* if ( accepted ) { */
|
||||
/* nextTurn( server ); */
|
||||
/* } */
|
||||
/* break; */
|
||||
/* case XWPROTO_CLIENT_MOVE_INFO: */
|
||||
/* accepted = handleClientMoved( server, incoming ); */
|
||||
/* break; */
|
||||
/* case XWPROTO_CLIENT_TRADE_INFO: */
|
||||
/* accepted = handleClientTraded( server, incoming ); */
|
||||
/* break; */
|
||||
/* case XWPROTO_MOVEMADE_INFO: */
|
||||
/* accepted = client_reflectMoveMade( server, incoming ); */
|
||||
/* if ( accepted ) { */
|
||||
/* nextTurn( server ); */
|
||||
/* } */
|
||||
/* break; */
|
||||
/* case XWPROTO_TRADEMADE_INFO: */
|
||||
/* accepted = client_reflectTradeMade( server, incoming ); */
|
||||
/* if ( accepted ) { */
|
||||
/* nextTurn( server ); */
|
||||
/* } */
|
||||
/* break; */
|
||||
/* case XWPROTO_CLIENT_MOVE_INFO: */
|
||||
/* accepted = handleClientMoved( server, incoming ); */
|
||||
/* break; */
|
||||
/* case XWPROTO_CLIENT_TRADE_INFO: */
|
||||
/* accepted = handleClientTraded( server, incoming ); */
|
||||
/* break; */
|
||||
|
||||
case XWPROTO_MOVEMADE_INFO_CLIENT: /* client is reporting a move */
|
||||
accepted = (XWSTATE_INTURN == server->nv.gameState)
|
||||
|
|
Loading…
Reference in a new issue