From e00aa6d9c97629b1a91ceb2c65b748bd89dd33f6 Mon Sep 17 00:00:00 2001 From: Brad Harding Date: Wed, 9 Oct 2024 18:27:44 +1100 Subject: [PATCH] Minor tweaks --- releasenotes.md | 2 +- src/d_deh.c | 2 +- src/v_video.c | 8 +++----- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/releasenotes.md b/releasenotes.md index 386bd6682..1c604e875 100644 --- a/releasenotes.md +++ b/releasenotes.md @@ -55,7 +55,7 @@ * The fuzz effect from spectres and the partial invisibility power-up now: * Doesn't cause the status bar to bleed into the player's view when the console is open. * Freezes along with everything else when freeze mode is enabled. -* Pressing the PRINTSCREEN key no longer accelerates the finale. +* Pressing the PRINTSCREEN key no longer advances the finale. ![](https://github.com/bradharding/www.doomretro.com/raw/master/wiki/bigdivider.png) diff --git a/src/d_deh.c b/src/d_deh.c index 2d4b4eee7..6fc982134 100644 --- a/src/d_deh.c +++ b/src/d_deh.c @@ -3191,7 +3191,7 @@ static void deh_procSounds(DEHFILE *fpin, const char *line) if (!deh_GetData(inbuffer, key, &value, NULL)) // returns true if ok { - C_Warning(1, "Bad data pair in \"%s\"\n", inbuffer); + C_Warning(1, "Bad data pair in \"%s\".", inbuffer); continue; } diff --git a/src/v_video.c b/src/v_video.c index 205150fba..1ca3018bb 100644 --- a/src/v_video.c +++ b/src/v_video.c @@ -933,14 +933,12 @@ void V_DrawMenuPatch(int x, int y, patch_t *patch, bool highlight, int shadowwid void V_DrawHelpPatch(patch_t *patch) { - byte *desttop; + byte *desttop = &screens[0][((WIDESCREENDELTA * DX) >> FRACBITS)]; const int width = SHORT(patch->width) << FRACBITS; - desttop = &screens[0][((WIDESCREENDELTA * DX) >> FRACBITS)]; - - for (int col = 0, i = 0; col < width; col += DXI, i++, desttop++) + for (int col = 0; col < width; col += DXI, desttop++) { - column_t *column = (column_t *)((byte *)patch + LONG(patch->columnoffset[col >> FRACBITS])); + column_t *column = (column_t *)((byte *)patch + LONG(patch->columnoffset[col >> FRACBITS])); // step through the posts in a column while (column->topdelta != 0xFF)