Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Dec 6, 2024
1 parent b57e69e commit 3592df5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions releasenotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@
* A bug is fixed whereby Wolfenstein SS were replaced by zombiemen at the start of each map in some rare instances.
* The behavior of lost souls spawned by pain elementals is now consistent with the original *DOOM II*.
* The drop shadows of menu items displayed using a `DBIGFONT` lump no longer overlap.
* Torched trees no longer bob when in liquid sectors.
* The player and monsters now traverse liquid sectors at different heights better.

![](https://github.com/bradharding/www.doomretro.com/raw/master/wiki/bigdivider.png)

Expand Down
10 changes: 5 additions & 5 deletions src/r_bsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ void R_ClearClipSegs(void)
// a line, including closure and texture tiling.
static void R_RecalcLineFlags(line_t *line)
{
bool twosided = line->flags & ML_TWOSIDED;
int c;
const bool twosided = (line->flags & ML_TWOSIDED);
int c;

line->r_validcount = gametime;

Expand Down Expand Up @@ -155,19 +155,19 @@ static void R_RecalcLineFlags(line_t *line)

if (twosided)
{
// Does top texture need tiling
// Does top texture need tiling?
if ((c = frontsector->interpceilingheight - backsector->interpceilingheight) > 0
&& textureheight[texturetranslation[curline->sidedef->toptexture]] > c)
line->r_flags |= RF_TOP_TILE;

// Does bottom texture need tiling
// Does bottom texture need tiling?
if ((c = frontsector->interpfloorheight - backsector->interpfloorheight) > 0
&& textureheight[texturetranslation[curline->sidedef->bottomtexture]] > c)
line->r_flags |= RF_BOT_TILE;
}
else
{
// Does middle texture need tiling
// Does middle texture need tiling?
if ((c = frontsector->interpceilingheight - frontsector->interpfloorheight) > 0
&& textureheight[texturetranslation[curline->sidedef->midtexture]] > c)
line->r_flags |= RF_MID_TILE;
Expand Down

0 comments on commit 3592df5

Please sign in to comment.