diff options
author | rubidium <rubidium@openttd.org> | 2009-01-20 03:12:46 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-20 03:12:46 +0000 |
commit | bb770717494ec94d54edb4c1dd1f5a7a0c830ead (patch) | |
tree | f26af7908c8ee5a9d45520a8f2d6aff9f6bfdec6 /src/genworld.cpp | |
parent | 5f3772a42c322a99d2ea57b6c97b76fceccbb781 (diff) | |
download | openttd-bb770717494ec94d54edb4c1dd1f5a7a0c830ead.tar.xz |
(svn r15158) -Cleanup: remove some unused/unneeded cruft from the thread generalisation.
Diffstat (limited to 'src/genworld.cpp')
-rw-r--r-- | src/genworld.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/genworld.cpp b/src/genworld.cpp index 2ff8f3674..1580dc410 100644 --- a/src/genworld.cpp +++ b/src/genworld.cpp @@ -300,7 +300,7 @@ void GenerateWorld(GenerateWorldMode mode, uint size_x, uint size_y) } if (BlitterFactoryBase::GetCurrentBlitter()->GetScreenDepth() == 0 || - (_gw.thread = ThreadObject::New(&_GenerateWorld, NULL)) == NULL) { + !ThreadObject::New(&_GenerateWorld, NULL, &_gw.thread)) { DEBUG(misc, 1, "Cannot create genworld thread, reverting to single-threaded mode"); _gw.threaded = false; _GenerateWorld(NULL); |