Mercurial > hg > openttd
changeset 13306:668cf751db70 draft
(svn r17815) -Fix [SDL]: asynchronious drawing caused extra unresponsiveness during map generation; disable the threading while generating a map
author | rubidium <rubidium@openttd.org> |
---|---|
date | Mon, 19 Oct 2009 20:32:05 +0000 |
parents | ec29b7e9b9a2 |
children | d998ec8f4d78 |
files | src/video/sdl_v.cpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ } /* 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 */