From f293ffa8a51912755125a7fc88fb789af20b07b9 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 7 May 2013 19:39:04 +0000 Subject: [PATCH] Fix a warning. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4342 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_model.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/engine/gl/gl_model.c b/engine/gl/gl_model.c index 7284cf5e7..b4cfb7f3e 100644 --- a/engine/gl/gl_model.c +++ b/engine/gl/gl_model.c @@ -406,16 +406,13 @@ void RMod_ClearAll (void) #ifdef RUNTIMELIGHTING #ifdef MULTITHREAD - if (relightthread) + wantrelight = false; + for (i = 0; i < relightthreads; i++) { - wantrelight = false; - for (i = 0; i < relightthreads; i++) - { - Sys_WaitOnThread(relightthread[i]); - relightthread[i] = NULL; - } - relightthreads = 0; + Sys_WaitOnThread(relightthread[i]); + relightthread[i] = NULL; } + relightthreads = 0; #endif lightmodel = NULL; #endif