Rev 140 | Rev 179 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 140 | Rev 172 | ||
|---|---|---|---|
| Line 49... | Line 49... | ||
| 49 | Scene_Shutdown (&the_scene); // release scene |
49 | Scene_Shutdown (&the_scene); // release scene |
| 50 | Board_Shutdown (&the_board); // release chess game |
50 | Board_Shutdown (&the_board); // release chess game |
| 51 | 51 | ||
| 52 | if (newgame_type == GAMETYPE_ONLINE) |
52 | if (newgame_type == GAMETYPE_ONLINE) |
| 53 | { |
53 | { |
| 54 | Board_Init (&the_board, PLAYER_HUMAN, PLAYER_INTERNET, FENSTARTUP_STANDARDCHESS); // we want an online opponent |
54 | Board_Init (&the_board, PLAYER_HUMAN, PLAYER_INTERNET, L"standard", FENSTARTUP_STANDARDCHESS); // we want an online opponent |
| 55 | the_board.game_state = STATE_UNKNOWN; // game does NOT start immediately |
55 | the_board.game_state = STATE_UNKNOWN; // game does NOT start immediately |
| 56 | } |
56 | } |
| 57 | else if (newgame_type == GAMETYPE_COMPUTER) |
57 | else if (newgame_type == GAMETYPE_COMPUTER) |
| 58 | { |
58 | { |
| 59 | Board_Init (&the_board, PLAYER_HUMAN, PLAYER_COMPUTER, FENSTARTUP_STANDARDCHESS); // we want a computer opponent |
59 | Board_Init (&the_board, PLAYER_HUMAN, PLAYER_COMPUTER, L"standard", FENSTARTUP_STANDARDCHESS); // we want a computer opponent |
| 60 | the_board.game_state = STATE_PLAYING; // game starts immediately |
60 | the_board.game_state = STATE_PLAYING; // game starts immediately |
| 61 | } |
61 | } |
| 62 | else |
62 | else |
| 63 | { |
63 | { |
| 64 | Board_Init (&the_board, PLAYER_HUMAN, PLAYER_HUMAN, FENSTARTUP_STANDARDCHESS); // we want a human opponent |
64 | Board_Init (&the_board, PLAYER_HUMAN, PLAYER_HUMAN, L"standard", FENSTARTUP_STANDARDCHESS); // we want a human opponent |
| 65 | the_board.game_state = STATE_PLAYING; // game starts immediately |
65 | the_board.game_state = STATE_PLAYING; // game starts immediately |
| 66 | DialogBox_RenameSides (); // pop up the opponents naming dialog box |
66 | DialogBox_RenameSides (); // pop up the opponents naming dialog box |
| 67 | } |
67 | } |
| 68 | Scene_Init (&the_scene, &the_board); // initialize scene |
68 | Scene_Init (&the_scene, &the_board); // initialize scene |
| 69 | 69 | ||