Rev 124 | Rev 131 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 124 | Rev 125 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | 35 | ||
36 | static void StartThread_ThisDialog (void *thread_parms) |
36 | static void StartThread_ThisDialog (void *thread_parms) |
37 | { |
37 | { |
38 | // this function runs in a separate thread, for that's the only way (seemingly) |
38 | // this function runs in a separate thread, for that's the only way (seemingly) |
39 | // to implement a non-modal message box using the Common Controls library. |
39 | // to implement a non-modal message box using the Common Controls library. |
- | 40 | ||
- | 41 | player_t *player; |
|
40 | 42 | ||
41 | // display the dialog box |
43 | // display the dialog box |
42 | if (DialogBox (hAppInstance, MAKEINTRESOURCE (THIS_DIALOG), hMainWnd, DialogProc_ThisDialog) == 1) |
44 | if (DialogBox (hAppInstance, MAKEINTRESOURCE (THIS_DIALOG), hMainWnd, DialogProc_ThisDialog) == 1) |
43 | is_dialogbox_endgame_validated = true; |
45 | is_dialogbox_endgame_validated = true; |
44 | 46 | ||
- | 47 | player = Player_GetCurrent (); |
|
- | 48 | player->view_distance = CLOSEUP_VIEW_DISTANCE; // zoom on the tragedy |
|
45 | the_board. |
49 | //the_board.reevaluate = true; // refresh the GUI buttons if needed // DO NOT REEVALUATE else the endgame dialog box will keep popup repeatedly! |
46 | return; // _endthread() implied |
50 | return; // _endthread() implied |
47 | } |
51 | } |
48 | 52 | ||
49 | 53 | ||
50 | static int CALLBACK DialogProc_ThisDialog (HWND hWnd, unsigned int message, WPARAM wParam, LPARAM lParam) |
54 | static int CALLBACK DialogProc_ThisDialog (HWND hWnd, unsigned int message, WPARAM wParam, LPARAM lParam) |