Subversion Repositories Games.Chess Giants

Rev

Rev 171 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 171 Rev 172
Line 44... Line 44...
44
   // else we're playing locally (either vs. another human or vs. computer)
44
   // else we're playing locally (either vs. another human or vs. computer)
45
   else
45
   else
46
   {
46
   {
47
      Scene_Shutdown (&the_scene); // release scene
47
      Scene_Shutdown (&the_scene); // release scene
48
      Board_Shutdown (&the_board); // release chess game
48
      Board_Shutdown (&the_board); // release chess game
49
      Board_Init (&the_board, PLAYER_HUMAN, PLAYER_HUMAN, FENSTARTUP_STANDARDCHESS); // prepare a new human vs human game (by default)
49
      Board_Init (&the_board, PLAYER_HUMAN, PLAYER_HUMAN, L"standard", FENSTARTUP_STANDARDCHESS); // prepare a new human vs human game (by default)
50
      Scene_Init (&the_scene, &the_board); // initialize scene
50
      Scene_Init (&the_scene, &the_board); // initialize scene
51
      SetWindowText (hMainWnd, PROGRAM_NAME); // update window title
51
      SetWindowText (hMainWnd, PROGRAM_NAME); // update window title
52
 
52
 
53
      if (resign_type == RESIGNTYPE_NEWGAME)
53
      if (resign_type == RESIGNTYPE_NEWGAME)
54
         DialogBox_NewGame (); // show the new game dialog box
54
         DialogBox_NewGame (); // show the new game dialog box