mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
fix: loop joining/sector splitting with TROR'ed sectors, rendering bugs due to slopes. change keys: [I] toggles invisibility preview, ['I] toggles sprite invisibility bit
git-svn-id: https://svn.eduke32.com/eduke32@1893 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
e92099b2f7
commit
5f8cc046cc
3 changed files with 31 additions and 17 deletions
|
@ -5339,7 +5339,14 @@ check_next_sector: ;
|
||||||
|
|
||||||
//clear out old sector's next pointers for clean deletesector
|
//clear out old sector's next pointers for clean deletesector
|
||||||
for (j=startwall; j<=endwall; j++)
|
for (j=startwall; j<=endwall; j++)
|
||||||
|
{
|
||||||
|
#ifdef YAX_ENABLE
|
||||||
|
// same thing for yax-nextwalls (only forward links!)
|
||||||
|
yax_setnextwall(j, YAX_CEILING, -1);
|
||||||
|
yax_setnextwall(j, YAX_FLOOR, -1);
|
||||||
|
#endif
|
||||||
wall[j].nextwall = wall[j].nextsector = -1;
|
wall[j].nextwall = wall[j].nextsector = -1;
|
||||||
|
}
|
||||||
deletesector(splitsect);
|
deletesector(splitsect);
|
||||||
|
|
||||||
//Check pointers
|
//Check pointers
|
||||||
|
|
|
@ -4286,11 +4286,8 @@ static void drawalls(int32_t bunch)
|
||||||
{
|
{
|
||||||
if ((cz[2] <= cz[0]) && (cz[3] <= cz[1]))
|
if ((cz[2] <= cz[0]) && (cz[3] <= cz[1]))
|
||||||
{
|
{
|
||||||
if (globparaceilclip
|
// if (globparaceilclip)
|
||||||
#ifdef YAX_ENABLE
|
if (getceilzofslope(sectnum, globalposx, globalposy) <= globalposz)
|
||||||
|| (sector[globalcursectnum].ceilingstat&4096)
|
|
||||||
#endif
|
|
||||||
)
|
|
||||||
for (x=x1; x<=x2; x++)
|
for (x=x1; x<=x2; x++)
|
||||||
if (uplc[x] > umost[x])
|
if (uplc[x] > umost[x])
|
||||||
if (umost[x] <= dmost[x])
|
if (umost[x] <= dmost[x])
|
||||||
|
@ -4380,11 +4377,8 @@ static void drawalls(int32_t bunch)
|
||||||
{
|
{
|
||||||
if ((fz[2] >= fz[0]) && (fz[3] >= fz[1]))
|
if ((fz[2] >= fz[0]) && (fz[3] >= fz[1]))
|
||||||
{
|
{
|
||||||
if (globparaflorclip
|
// if (globparaflorclip)
|
||||||
#ifdef YAX_ENABLE
|
if (getflorzofslope(sectnum, globalposx, globalposy) >= globalposz)
|
||||||
|| (sector[globalcursectnum].floorstat&4096)
|
|
||||||
#endif
|
|
||||||
)
|
|
||||||
for (x=x1; x<=x2; x++)
|
for (x=x1; x<=x2; x++)
|
||||||
if (dplc[x] < dmost[x])
|
if (dplc[x] < dmost[x])
|
||||||
if (umost[x] <= dmost[x])
|
if (umost[x] <= dmost[x])
|
||||||
|
@ -7632,7 +7626,7 @@ void initspritelists(void)
|
||||||
void drawrooms(int32_t daposx, int32_t daposy, int32_t daposz,
|
void drawrooms(int32_t daposx, int32_t daposy, int32_t daposz,
|
||||||
int16_t daang, int32_t dahoriz, int16_t dacursectnum)
|
int16_t daang, int32_t dahoriz, int16_t dacursectnum)
|
||||||
{
|
{
|
||||||
int32_t i, j, cz, fz, closest;
|
int32_t i, j, /*cz, fz,*/ closest;
|
||||||
int16_t *shortptr1, *shortptr2;
|
int16_t *shortptr1, *shortptr2;
|
||||||
|
|
||||||
beforedrawrooms = 0;
|
beforedrawrooms = 0;
|
||||||
|
@ -7751,13 +7745,13 @@ void drawrooms(int32_t daposx, int32_t daposy, int32_t daposz,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
globparaceilclip = 1;
|
globparaceilclip = 1;
|
||||||
globparaflorclip = 1;
|
globparaflorclip = 1;
|
||||||
getzsofslope(globalcursectnum,globalposx,globalposy,&cz,&fz);
|
getzsofslope(globalcursectnum,globalposx,globalposy,&cz,&fz);
|
||||||
if (globalposz < cz) globparaceilclip = 0;
|
if (globalposz < cz) globparaceilclip = 0;
|
||||||
if (globalposz > fz) globparaflorclip = 0;
|
if (globalposz > fz) globparaflorclip = 0;
|
||||||
|
*/
|
||||||
scansector(globalcursectnum);
|
scansector(globalcursectnum);
|
||||||
|
|
||||||
if (inpreparemirror)
|
if (inpreparemirror)
|
||||||
|
|
|
@ -6068,7 +6068,19 @@ static void Keys3d(void)
|
||||||
// printext256(1*4,1*8,11,-1,tempbuf,0);
|
// printext256(1*4,1*8,11,-1,tempbuf,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (keystatus[KEYSC_QUOTE] && PRESSED_KEYSC(I)) // ' i
|
if (keystatus[KEYSC_I])
|
||||||
|
{
|
||||||
|
keystatus[KEYSC_I] = 0;
|
||||||
|
|
||||||
|
if (keystatus[KEYSC_QUOTE])
|
||||||
|
{
|
||||||
|
if (AIMING_AT_SPRITE)
|
||||||
|
{
|
||||||
|
sprite[searchwall].cstat ^= 32768;
|
||||||
|
message("Sprite %d made %svisible", searchwall, (sprite[searchwall].cstat&32768) ? "in":"");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else // ' i
|
||||||
{
|
{
|
||||||
showinvisibility = !showinvisibility;
|
showinvisibility = !showinvisibility;
|
||||||
#ifndef YAX_ENABLE
|
#ifndef YAX_ENABLE
|
||||||
|
@ -6077,6 +6089,7 @@ static void Keys3d(void)
|
||||||
message("Show invisible objects %s", showinvisibility?"enabled":"disabled");
|
message("Show invisible objects %s", showinvisibility?"enabled":"disabled");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (keystatus[KEYSC_QUOTE] && PRESSED_KEYSC(X)) // ' x
|
if (keystatus[KEYSC_QUOTE] && PRESSED_KEYSC(X)) // ' x
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue