From e544488283b34d8db7ee3bdac25de2d99d8e9551 Mon Sep 17 00:00:00 2001 From: terminx Date: Thu, 26 Mar 2015 21:42:19 +0000 Subject: [PATCH] Fix Polymost issue reported at http://forums.duke4.net/topic/775-eduke32-20-and-polymer/page__view__findpost__p__220265 git-svn-id: https://svn.eduke32.com/eduke32@5095 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/polymost.c b/polymer/eduke32/build/src/polymost.c index 1bf6e87af..aa69be7d4 100644 --- a/polymer/eduke32/build/src/polymost.c +++ b/polymer/eduke32/build/src/polymost.c @@ -3466,7 +3466,7 @@ void polymost_drawrooms() for (int i=0; i<4; i++) { - int const j = i < n ? i + 1 : 0; + int const j = i < 3 ? i + 1 : 0; if (p[i].z >= SCISDIST) p2[n++] = p[i];