mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-01 06:00:45 +00:00
Use Tags_Compare wrapper on software renderer to compare sector tags.
This commit is contained in:
parent
bfd48c4c83
commit
fe4ab5d29f
2 changed files with 7 additions and 5 deletions
|
@ -21,6 +21,7 @@
|
||||||
#include "p_local.h" // camera
|
#include "p_local.h" // camera
|
||||||
#include "p_slopes.h"
|
#include "p_slopes.h"
|
||||||
#include "z_zone.h" // Check R_Prep3DFloors
|
#include "z_zone.h" // Check R_Prep3DFloors
|
||||||
|
#include "taglist.h"
|
||||||
|
|
||||||
seg_t *curline;
|
seg_t *curline;
|
||||||
side_t *sidedef;
|
side_t *sidedef;
|
||||||
|
@ -376,7 +377,7 @@ boolean R_IsEmptyLine(seg_t *line, sector_t *front, sector_t *back)
|
||||||
// Consider colormaps
|
// Consider colormaps
|
||||||
&& back->extra_colormap == front->extra_colormap
|
&& back->extra_colormap == front->extra_colormap
|
||||||
&& ((!front->ffloors && !back->ffloors)
|
&& ((!front->ffloors && !back->ffloors)
|
||||||
|| front->tag == back->tag));
|
|| Tags_Compare(&front->tags, &back->tags)));
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -488,7 +489,7 @@ static void R_AddLine(seg_t *line)
|
||||||
#endif
|
#endif
|
||||||
!line->sidedef->midtexture
|
!line->sidedef->midtexture
|
||||||
&& ((!frontsector->ffloors && !backsector->ffloors)
|
&& ((!frontsector->ffloors && !backsector->ffloors)
|
||||||
|| (frontsector->tag == backsector->tag)))
|
|| Tags_Compare(&frontsector->tags, &backsector->tags)))
|
||||||
return; // line is empty, don't even bother
|
return; // line is empty, don't even bother
|
||||||
|
|
||||||
goto clippass; // treat like wide open window instead
|
goto clippass; // treat like wide open window instead
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#include "p_local.h" // Camera...
|
#include "p_local.h" // Camera...
|
||||||
#include "p_slopes.h"
|
#include "p_slopes.h"
|
||||||
#include "console.h" // con_clipviewtop
|
#include "console.h" // con_clipviewtop
|
||||||
|
#include "taglist.h"
|
||||||
|
|
||||||
// OPTIMIZE: closed two sided lines as single sided
|
// OPTIMIZE: closed two sided lines as single sided
|
||||||
|
|
||||||
|
@ -2014,7 +2015,7 @@ void R_StoreWallRange(INT32 start, INT32 stop)
|
||||||
|| backsector->floorlightsec != frontsector->floorlightsec
|
|| backsector->floorlightsec != frontsector->floorlightsec
|
||||||
//SoM: 4/3/2000: Check for colormaps
|
//SoM: 4/3/2000: Check for colormaps
|
||||||
|| frontsector->extra_colormap != backsector->extra_colormap
|
|| frontsector->extra_colormap != backsector->extra_colormap
|
||||||
|| (frontsector->ffloors != backsector->ffloors && frontsector->tag != backsector->tag))
|
|| (frontsector->ffloors != backsector->ffloors && !Tags_Compare(&frontsector->tags, &backsector->tags))
|
||||||
{
|
{
|
||||||
markfloor = true;
|
markfloor = true;
|
||||||
}
|
}
|
||||||
|
@ -2045,7 +2046,7 @@ void R_StoreWallRange(INT32 start, INT32 stop)
|
||||||
|| backsector->ceilinglightsec != frontsector->ceilinglightsec
|
|| backsector->ceilinglightsec != frontsector->ceilinglightsec
|
||||||
//SoM: 4/3/2000: Check for colormaps
|
//SoM: 4/3/2000: Check for colormaps
|
||||||
|| frontsector->extra_colormap != backsector->extra_colormap
|
|| frontsector->extra_colormap != backsector->extra_colormap
|
||||||
|| (frontsector->ffloors != backsector->ffloors && frontsector->tag != backsector->tag))
|
|| (frontsector->ffloors != backsector->ffloors && !Tags_Compare(&frontsector->tags, &backsector->tags))
|
||||||
{
|
{
|
||||||
markceiling = true;
|
markceiling = true;
|
||||||
}
|
}
|
||||||
|
@ -2135,7 +2136,7 @@ void R_StoreWallRange(INT32 start, INT32 stop)
|
||||||
rw_bottomtexturemid += sidedef->rowoffset;
|
rw_bottomtexturemid += sidedef->rowoffset;
|
||||||
|
|
||||||
// allocate space for masked texture tables
|
// allocate space for masked texture tables
|
||||||
if (frontsector && backsector && frontsector->tag != backsector->tag && (backsector->ffloors || frontsector->ffloors))
|
if (frontsector && backsector && !Tags_Compare(&frontsector->tags, &backsector->tags) && (backsector->ffloors || frontsector->ffloors))
|
||||||
{
|
{
|
||||||
ffloor_t *rover;
|
ffloor_t *rover;
|
||||||
ffloor_t *r2;
|
ffloor_t *r2;
|
||||||
|
|
Loading…
Reference in a new issue