From bb770717494ec94d54edb4c1dd1f5a7a0c830ead Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 20 Jan 2009 03:12:46 +0000 Subject: (svn r15158) -Cleanup: remove some unused/unneeded cruft from the thread generalisation. --- src/genworld.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/genworld.cpp') 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); -- cgit v1.2.3-54-g00ecf