Subversion Repositories Games.Chess Giants

Rev

Rev 124 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 124 Rev 140
Line 43... Line 43...
43
 
43
 
44
void DialogBox_PlayerCard (int playercard_index)
44
void DialogBox_PlayerCard (int playercard_index)
45
{
45
{
46
   // helper function to fire up the modeless dialog box
46
   // helper function to fire up the modeless dialog box
47
 
47
 
-
 
48
   is_dialogbox_displayed = true;
48
   _beginthread (StartThread_PlayerCard, 0, (void *) playercard_index); // fire up the thread
49
   _beginthread (StartThread_PlayerCard, 0, (void *) playercard_index); // fire up the thread
49
   return; // return as soon as the thread is fired up
50
   return; // return as soon as the thread is fired up
50
}
51
}
51
 
52
 
52
 
53
 
Line 85... Line 86...
85
   playercard = &playercards[playercard_index]; // quick access to player card structure
86
   playercard = &playercards[playercard_index]; // quick access to player card structure
86
 
87
 
87
   // display the dialog box and attach this playercard to it
88
   // display the dialog box and attach this playercard to it
88
   if (DialogBoxParam (hAppInstance, MAKEINTRESOURCE (THIS_DIALOG), NULL, DialogProc_PlayerCard, (LPARAM) playercard_index) == 1)
89
   if (DialogBoxParam (hAppInstance, MAKEINTRESOURCE (THIS_DIALOG), NULL, DialogProc_PlayerCard, (LPARAM) playercard_index) == 1)
89
      is_dialogbox_playercard_validated = true;
90
      is_dialogbox_playercard_validated = true;
-
 
91
   is_dialogbox_displayed = false;
90
 
92
 
91
   // now that we're sure the window disappeared...
93
   // now that we're sure the window disappeared...
92
   playercard = &playercards[playercard_index]; // quick access to player card structure (it may have relocated)
94
   playercard = &playercards[playercard_index]; // quick access to player card structure (it may have relocated)
93
   playercard->is_active = false; // remember interlocutor has gone away
95
   playercard->is_active = false; // remember interlocutor has gone away
94
   SAFE_free ((void **) &playercard->fingertext); // free its text
96
   SAFE_free ((void **) &playercard->fingertext); // free its text