Rev 124 | Rev 140 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 124 | Rev 136 | ||
---|---|---|---|
Line 188... | Line 188... | ||
188 | // now unlock all the players' buffers |
188 | // now unlock all the players' buffers |
189 | board->players[COLOR_BLACK].sendbuffer_locked = false; |
189 | board->players[COLOR_BLACK].sendbuffer_locked = false; |
190 | board->players[COLOR_WHITE].sendbuffer_locked = false; |
190 | board->players[COLOR_WHITE].sendbuffer_locked = false; |
191 | 191 | ||
192 | board->reevaluate = true; // remember to reevaluate this board |
192 | board->reevaluate = true; // remember to reevaluate this board |
- | 193 | ||
- | 194 | return; // finished |
|
- | 195 | } |
|
- | 196 | ||
- | 197 | ||
- | 198 | void Board_EnterSetupPosition (board_t *board) |
|
- | 199 | { |
|
- | 200 | // helper function to switch to board setup position mode |
|
- | 201 | ||
- | 202 | memset (&board->moves[0].slots, 0, sizeof (board->moves[0].slots)); // erase all of start move's slots |
|
- | 203 | ||
- | 204 | the_board.game_state = STATE_SETUPPOSITION; // game not started yet, enter board setup mode |
|
- | 205 | the_board.reevaluate = true; // evaluate board again |
|
- | 206 | ||
- | 207 | // display the "please choose start position" phrase in the middle of the screen |
|
- | 208 | Scene_SetText (&the_scene.gui.central_text, 50.0f, 50.0f, -1, ALIGN_CENTER, ALIGN_CENTER, ALIGN_CENTER, centermsg_fontindex, RGBA_TO_RGBACOLOR (255, 255, 255, 191), 999999.0f, true, LOCALIZE (L"SetupMode")); |
|
- | 209 | the_scene.gui.partspick_selectedpart = ' '; // no selected part yet |
|
- | 210 | the_scene.update = true; // and update the 3D scene |
|
193 | 211 | ||
194 | return; // finished |
212 | return; // finished |
195 | } |
213 | } |
196 | 214 | ||
197 | 215 |