equal
deleted
inserted
replaced
725 static void AbortGeneratingWorldCallback(Window *w, bool confirmed) |
725 static void AbortGeneratingWorldCallback(Window *w, bool confirmed) |
726 { |
726 { |
727 if (confirmed) { |
727 if (confirmed) { |
728 AbortGeneratingWorld(); |
728 AbortGeneratingWorld(); |
729 } else if (IsGeneratingWorld() && !IsGeneratingWorldAborted()) { |
729 } else if (IsGeneratingWorld() && !IsGeneratingWorldAborted()) { |
730 SetMouseCursor(SPR_CURSOR_ZZZ); |
730 SetMouseCursor(SPR_CURSOR_ZZZ, PAL_NONE); |
731 } |
731 } |
732 } |
732 } |
733 |
733 |
734 static void ShowTerrainProgressProc(Window* w, WindowEvent* e) |
734 static void ShowTerrainProgressProc(Window* w, WindowEvent* e) |
735 { |
735 { |
736 switch (e->event) { |
736 switch (e->event) { |
737 case WE_CLICK: |
737 case WE_CLICK: |
738 switch (e->we.click.widget) { |
738 switch (e->we.click.widget) { |
739 case 2: |
739 case 2: |
740 if (_cursor.sprite == SPR_CURSOR_ZZZ) SetMouseCursor(SPR_CURSOR_MOUSE); |
740 if (_cursor.sprite == SPR_CURSOR_ZZZ) SetMouseCursor(SPR_CURSOR_MOUSE, PAL_NONE); |
741 ShowQuery( |
741 ShowQuery( |
742 STR_GENERATION_ABORT_CAPTION, |
742 STR_GENERATION_ABORT_CAPTION, |
743 STR_GENERATION_ABORT_MESSAGE, |
743 STR_GENERATION_ABORT_MESSAGE, |
744 w, |
744 w, |
745 AbortGeneratingWorldCallback |
745 AbortGeneratingWorldCallback |