Rev 124 | Rev 172 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 124 | Rev 140 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | // helper function to fire up the modeless dialog box |
28 | // helper function to fire up the modeless dialog box |
29 | 29 | ||
30 | // HACK to prevent the player to click and block the view angles while the slide-in is not finished |
30 | // HACK to prevent the player to click and block the view angles while the slide-in is not finished |
31 | command_ignoretime = current_time + 2.0f; // allow 2 seconds |
31 | command_ignoretime = current_time + 2.0f; // allow 2 seconds |
32 | 32 | ||
- | 33 | is_dialogbox_displayed = true; |
|
33 | _beginthread (StartThread_ThisDialog, 0, NULL); // so fire up a new one |
34 | _beginthread (StartThread_ThisDialog, 0, NULL); // so fire up a new one |
34 | 35 | ||
35 | the_scene.gui.want_spinwheel = true; // start spinning wheel |
36 | the_scene.gui.want_spinwheel = true; // start spinning wheel |
36 | 37 | ||
37 | return; // return as soon as the thread is fired up |
38 | return; // return as soon as the thread is fired up |
Line 81... | Line 82... | ||
81 | 82 | ||
82 | // display the dialog box |
83 | // display the dialog box |
83 | newgame_type = DialogBox (hAppInstance, MAKEINTRESOURCE (THIS_DIALOG), hMainWnd, DialogProc_ThisDialog); |
84 | newgame_type = DialogBox (hAppInstance, MAKEINTRESOURCE (THIS_DIALOG), hMainWnd, DialogProc_ThisDialog); |
84 | if (newgame_type > 0) |
85 | if (newgame_type > 0) |
85 | is_dialogbox_newgame_validated = true; |
86 | is_dialogbox_newgame_validated = true; |
- | 87 | is_dialogbox_displayed = false; |
|
86 | 88 | ||
87 | the_board.reevaluate = true; // refresh the GUI buttons if needed |
89 | the_board.reevaluate = true; // refresh the GUI buttons if needed |
88 | return; // _endthread() implied |
90 | return; // _endthread() implied |
89 | } |
91 | } |
90 | 92 |