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
This commit is contained in:
plagman 2009-04-01 18:11:01 +00:00
parent a4c5af4d37
commit 8181b1141d

View file

@ -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) void polymer_drawrooms(int32_t daposx, int32_t daposy, int32_t daposz, int16_t daang, int32_t dahoriz, int16_t dacursectnum)
{ {
int16_t cursectnum; int16_t cursectnum;
int32_t i; int32_t i, cursectflorz, cursectceilz;
float ang, tiltang; float ang, tiltang;
float pos[3]; float pos[3];
@ -714,10 +714,12 @@ void polymer_drawrooms(int32_t daposx, int32_t daposy, int32_t da
i++; i++;
} }
getzsofslope(dacursectnum, daposx, daposy, &cursectceilz, &cursectflorz);
// external view (editor) // external view (editor)
if ((dacursectnum < 0) || (dacursectnum >= numsectors) || if ((dacursectnum < 0) || (dacursectnum >= numsectors) ||
(daposz > sector[dacursectnum].floorz) || (daposz > cursectflorz) ||
(daposz < sector[dacursectnum].ceilingz)) (daposz < cursectceilz))
{ {
i = 0; i = 0;
while (i < numsectors) while (i < numsectors)