From 8181b1141d9726301a9361b9b0efe246e29e1611 Mon Sep 17 00:00:00 2001 From: plagman Date: Wed, 1 Apr 2009 18:11:01 +0000 Subject: [PATCH] Fixes the bug where the renderer would get in "external view" mode on slopes. git-svn-id: https://svn.eduke32.com/eduke32@1291 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymer.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/build/src/polymer.c b/polymer/eduke32/build/src/polymer.c index 64e41ee5d..747d611f8 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -651,7 +651,7 @@ void polymer_loadboard(void) void polymer_drawrooms(int32_t daposx, int32_t daposy, int32_t daposz, int16_t daang, int32_t dahoriz, int16_t dacursectnum) { int16_t cursectnum; - int32_t i; + int32_t i, cursectflorz, cursectceilz; float ang, tiltang; float pos[3]; @@ -714,10 +714,12 @@ void polymer_drawrooms(int32_t daposx, int32_t daposy, int32_t da i++; } + getzsofslope(dacursectnum, daposx, daposy, &cursectceilz, &cursectflorz); + // external view (editor) if ((dacursectnum < 0) || (dacursectnum >= numsectors) || - (daposz > sector[dacursectnum].floorz) || - (daposz < sector[dacursectnum].ceilingz)) + (daposz > cursectflorz) || + (daposz < cursectceilz)) { i = 0; while (i < numsectors)