Rev 1 | Rev 24 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1 | Rev 21 | ||
---|---|---|---|
Line 45... | Line 45... | ||
45 | scene->object_count = 3; |
45 | scene->object_count = 3; |
46 | 46 | ||
47 | // reset the camera position for a cool slide-in effect, but only if autorotate is enabled |
47 | // reset the camera position for a cool slide-in effect, but only if autorotate is enabled |
48 | if (options.want_autorotateon1vs1) |
48 | if (options.want_autorotateon1vs1) |
49 | { |
49 | { |
50 | current_pitch = |
50 | current_pitch = 6.0f; // autorotate is enabled, prepare for slide-in effect |
51 | current_yaw = (Board_ColorToMove (board) == COLOR_WHITE ? 90.0f : -90.0f); |
51 | current_yaw = (Board_ColorToMove (board) == COLOR_WHITE ? 90.0f : -90.0f); |
52 | current_distance = 40.0f; |
52 | current_distance = 40.0f; |
53 | } |
53 | } |
54 | else |
54 | else |
55 | { |
55 | { |
56 | current_pitch = 55.0f; // no autorotate, reset to standard view position directly |
56 | current_pitch = 55.0f; // no autorotate, reset to standard view position directly |
57 | current_yaw = (Board_ColorToMove (board) == COLOR_BLACK ? 90.0f : -90.0f); |
57 | current_yaw = (Board_ColorToMove (board) == COLOR_BLACK ? 90.0f : -90.0f); |
58 | current_distance = 70.0f; |
58 | current_distance = 70.0f; |
59 | } |
59 | } |
- | 60 | ||
- | 61 | // HACK to prevent the player to click and block the view angles while the slide-in is not finished |
|
- | 62 | command_ignoretime = current_time + 2.0f; // allow 2 seconds |
|
60 | 63 | ||
61 | // build the connected comment string (we use it as a global variable) |
64 | // build the connected comment string (we use it as a global variable) |
62 | wcscpy_s (format_string, WCHAR_SIZEOF (format_string), LOCALIZE (L"YouAreConnectedToX")); |
65 | wcscpy_s (format_string, WCHAR_SIZEOF (format_string), LOCALIZE (L"YouAreConnectedToX")); |
63 | wcscat_s (format_string, WCHAR_SIZEOF (format_string), L"\n"); |
66 | wcscat_s (format_string, WCHAR_SIZEOF (format_string), L"\n"); |
64 | wcscat_s (format_string, WCHAR_SIZEOF (format_string), LOCALIZE (L"YouMayEitherDisplayThePlayersListOrTheSoughtGamesList")); |
67 | wcscat_s (format_string, WCHAR_SIZEOF (format_string), LOCALIZE (L"YouMayEitherDisplayThePlayersListOrTheSoughtGamesList")); |