diff options
author | rubidium <rubidium@openttd.org> | 2011-12-10 16:05:26 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-12-10 16:05:26 +0000 |
commit | 0ca25fb3af8fbf00607df120149b27aa7a763edb (patch) | |
tree | 432cac5f9d7caac4f6256b2c4266bfcfd42a68b9 /src/genworld.cpp | |
parent | e88a982fc6b12fbecbba59868fc8530449ff0ca7 (diff) | |
download | openttd-0ca25fb3af8fbf00607df120149b27aa7a763edb.tar.xz |
(svn r23480) -Fix [FS#4594]: replace OS error messages with internal error messages when that's possible
Diffstat (limited to 'src/genworld.cpp')
-rw-r--r-- | src/genworld.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/genworld.cpp b/src/genworld.cpp index 9302bbb03..beb9059b2 100644 --- a/src/genworld.cpp +++ b/src/genworld.cpp @@ -32,6 +32,7 @@ #include "core/random_func.hpp" #include "core/backup_type.hpp" #include "progress.h" +#include "error.h" #include "table/sprites.h" @@ -83,6 +84,7 @@ static void CleanupGeneration() _gw.threaded = false; DeleteWindowById(WC_MODAL_PROGRESS, 0); + ShowFirstError(); MarkWholeScreenDirty(); } @@ -317,6 +319,7 @@ void GenerateWorld(GenWorldMode mode, uint size_x, uint size_y, bool reset_setti return; } + UnshowCriticalError(); /* Remove any open window */ DeleteAllNonVitalWindows(); /* Hide vital windows, because we don't allow to use them */ |