From 3592df50f02f337c1840ccd485f8f6e825998862 Mon Sep 17 00:00:00 2001 From: Brad Harding Date: Fri, 6 Dec 2024 11:14:46 +1100 Subject: [PATCH] Minor tweaks --- releasenotes.md | 2 ++ src/r_bsp.c | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/releasenotes.md b/releasenotes.md index e84577b3b..e0a6bff27 100644 --- a/releasenotes.md +++ b/releasenotes.md @@ -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) diff --git a/src/r_bsp.c b/src/r_bsp.c index 463061950..bdd6ad865 100644 --- a/src/r_bsp.c +++ b/src/r_bsp.c @@ -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; @@ -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;