mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +00:00
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:
parent
a4c5af4d37
commit
8181b1141d
1 changed files with 5 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue