| 925 | { |
| 926 | if (_cursor != CursorMove) |
| 927 | { |
| 928 | _cursor = CursorMove; |
| 929 | SetCursor("Move"); |
| 930 | } |
| 931 | } |
| 932 | else if (_map->_moving) |
| 933 | { |
| 934 | if (_cursor != CursorScroll) |
| 935 | { |
| 936 | _cursor = CursorScroll; |
| 937 | SetCursor("Scroll"); |
| 938 | } |
| 939 | } |
| 940 | else |
| 941 | { |
| 942 | if (_cursor != CursorTrack) |
| 943 | { |
| 944 | _cursor = CursorTrack; |
| 945 | SetCursor("Track"); |
| 946 | } |
| 947 | } |
| 948 | } |
| 949 | else |
| 950 | { |
| 951 | if (_cursor != CursorArrow) |
| 952 | { |
| 953 | _cursor = CursorArrow; |
| 954 | SetCursor("Arrow"); |
| 955 | } |
| 956 | } |
| 957 | } |
| 958 | } |
| 959 | |
| 960 | void DisplayWizardMap::OnChildDestroyed(int idd, int exit) |
| 961 | { |
| 962 | switch (idd) |
| 963 | { |
| 964 | case IDD_ARCADE_MAP: |
| 965 | Display::OnChildDestroyed(idd, exit); |
| 966 | // if (exit == IDC_OK) |
| 967 | { |
| 968 | RString userDir = GetUserMissionsBase(); |
| 969 | SetBaseDirectory(true, userDir); |
| 970 | if (_multiplayer) |
| 971 | { |
| 972 | GetNetworkManager().CreateMission("", ""); |
| 973 | ::SetMission(_world, _name, GetMPMissionsDir()); |
| 974 | } |
| 975 | else |
| 976 | { |
| 977 | ::SetMission(_world, _name, GetMissionsDir()); |
| 978 | } |
| 979 | |
| 980 | OnButtonClicked(IDC_OK); |
| 981 | } |
| 982 | break; |
| 983 | default: |
| 984 | Display::OnChildDestroyed(idd, exit); |
nothing calls this directly
no test coverage detected