* Generation is done; show windows again and delete the progress window. */
| 79 | * Generation is done; show windows again and delete the progress window. |
| 80 | */ |
| 81 | static void CleanupGeneration() |
| 82 | { |
| 83 | _generating_world = false; |
| 84 | |
| 85 | SetMouseCursorBusy(false); |
| 86 | SetModalProgress(false); |
| 87 | GenWorldInfo::proc = nullptr; |
| 88 | GenWorldInfo::abortp = nullptr; |
| 89 | |
| 90 | CloseWindowByClass(WC_MODAL_PROGRESS); |
| 91 | ShowFirstError(); |
| 92 | MarkWholeScreenDirty(); |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * The internal, real, generate function. |
no test coverage detected