Commit 14c68c3c authored by Anders Jonsson's avatar Anders Jonsson Committed by Alexandre Julliard

winemine: Change max number of mines to (cols-1)*(rows-1).

parent fadc8afc
...@@ -53,8 +53,8 @@ void CheckLevel( BOARD *p_board ) ...@@ -53,8 +53,8 @@ void CheckLevel( BOARD *p_board )
if( p_board->mines < BEGINNER_MINES ) if( p_board->mines < BEGINNER_MINES )
p_board->mines = BEGINNER_MINES; p_board->mines = BEGINNER_MINES;
if( p_board->mines > p_board->cols * p_board->rows - 2 ) if( p_board->mines > ( p_board->cols - 1 ) * ( p_board->rows - 1 ) )
p_board->mines = p_board->cols * p_board->rows - 2; p_board->mines = ( p_board->cols - 1 ) * ( p_board->rows - 1 );
} }
static void LoadBoard( BOARD *p_board ) static void LoadBoard( BOARD *p_board )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment