From add21e134af2e9874b40f8855df8748b96f6278b Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 2 Nov 2019 10:41:42 +0100 Subject: [PATCH] ray:: do not create through walls --- raycaster.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/raycaster.cpp b/raycaster.cpp index e6ecd06f..13deb2c3 100644 --- a/raycaster.cpp +++ b/raycaster.cpp @@ -715,9 +715,11 @@ EX void cast() { if(true) { manual_celllister cl; cl.add(cs); + bool optimize = !isWall3(cs); for(int i=0; i 0 && c->wall == waBarrier) continue; + if(optimize && isWall3(c)) continue; forCellCM(c2, c) { if(rays_generate) setdist(c2, 7, c); cl.add(c2);