From bffe8d11bd1dfec49280fb64a17f0ae529ac3f5d Mon Sep 17 00:00:00 2001 From: xolatile Date: Sun, 17 Aug 2025 18:28:28 +0200 Subject: Compiles, removed a lot of code, do not run it... --- src/engine/lightmap.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/engine/lightmap.cpp') diff --git a/src/engine/lightmap.cpp b/src/engine/lightmap.cpp index 3840d58..9cc835e 100644 --- a/src/engine/lightmap.cpp +++ b/src/engine/lightmap.cpp @@ -20,7 +20,6 @@ struct lightmapworker { VSlot *vslot; Slot *slot; vector lights; - ShadowRayCache *shadowraycache; bool needspace, doneworking; SDL_cond *spacecond; SDL_Thread *thread; @@ -377,7 +376,7 @@ static uint generatelumel(lightmapworker *w, const float tolerance, uint lightma float angle = -ray.dot(normal); if(angle <= 0) continue; if(lmshadows && mag) { - float dist = shadowray(w->shadowraycache, light.o, ray, mag - tolerance, RAY_SHADOW | (lmshadows > 1 ? RAY_ALPHAPOLY : 0)); + float dist = shadowray(light.o, ray, mag - tolerance, RAY_SHADOW | (lmshadows > 1 ? RAY_ALPHAPOLY : 0)); if(dist < mag - tolerance) continue; } lightused |= 1< 0 ? lightthreads : numcpus; - if(numthreads > 1) preloadusedmapmodels(false, true); + if(numthreads > 1) preloadusedmapmodels(false); resetlightmaps(false); clearsurfaces(worldroot); taskprogress = progress = 0; -- cgit v1.2.3