summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-10-19 20:32:05 +0000
committerrubidium <rubidium@openttd.org>2009-10-19 20:32:05 +0000
commitcfcf3159b2a4c20f2457c1ac360139c18617b93d (patch)
tree0f6002a2b73d32685d25815e6e418cee226a62ad /src
parent7f6d9d8c110e1232b184b8226a306699eabefcd2 (diff)
downloadopenttd-cfcf3159b2a4c20f2457c1ac360139c18617b93d.tar.xz
(svn r17815) -Fix [SDL]: asynchronious drawing caused extra unresponsiveness during map generation; disable the threading while generating a map
Diffstat (limited to 'src')
-rw-r--r--src/video/sdl_v.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video/sdl_v.cpp b/src/video/sdl_v.cpp
index 1cb6d828b..15c3ef37d 100644
--- a/src/video/sdl_v.cpp
+++ b/src/video/sdl_v.cpp
@@ -21,6 +21,7 @@
#include "../network/network.h"
#include "../functions.h"
#include "../thread/thread.h"
+#include "../genworld.h"
#include "sdl_v.h"
#include <SDL.h>
@@ -572,7 +573,7 @@ void VideoDriver_SDL::MainLoop()
}
/* End of the critical part. */
- if (_draw_threaded) {
+ if (_draw_threaded && !IsGeneratingWorld()) {
_draw_mutex->SendSignal();
} else {
/* Oh, we didn't have threads, then just draw unthreaded */