add summary when no tiles played too

This commit is contained in:
ehouse 2004-02-27 06:19:31 +00:00
parent f7bd5b703e
commit 4a3d85e058

View file

@ -227,10 +227,13 @@ checkScoreMove( ModelCtxt* model, XP_S16 turn, EngineCtxt* engine,
XP_ASSERT( player->nPending <= MAX_TRAY_TILES ); XP_ASSERT( player->nPending <= MAX_TRAY_TILES );
if ( player->nPending == 0 ) { if ( player->nPending == 0 ) {
return 0; score = 0;
if ( !!stream ) {
formatSummary( stream, model, 0 );
} }
if ( tilesInLine( model, turn, &isHorizontal ) ) { } else if ( tilesInLine( model, turn, &isHorizontal ) ) {
MoveInfo moveInfo; MoveInfo moveInfo;
normalizeMoves( model, turn, isHorizontal, &moveInfo ); normalizeMoves( model, turn, isHorizontal, &moveInfo );