From 05de187667ddac5be6f04a898049c9b743becf72 Mon Sep 17 00:00:00 2001 From: Nep2Disk Date: Sat, 22 Feb 2025 18:08:13 +0000 Subject: [PATCH 1/3] Fix patches being turned inside-out by cliprect in GL Turns out the reason the chat looks strange in LegacyGL is because of cliprect. This is a fix that was done by GenericHeroGuy for one of my other projects. --- src/hardware/hw_draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hardware/hw_draw.c b/src/hardware/hw_draw.c index b26eaa2c2..d4ba78614 100644 --- a/src/hardware/hw_draw.c +++ b/src/hardware/hw_draw.c @@ -267,8 +267,8 @@ void HWR_DrawStretchyFixedPatch(patch_t *gpatch, fixed_t x, fixed_t y, fixed_t p cx = cx1; cy = cy1; - fwidth = cx2 - cx1; - fheight = cy2 - cy1; + fwidth = fmaxf(0.0f, cx2 - cx1); + fheight = fmaxf(0.0f, cy2 - cy1); } // positions of the cx, cy, are between 0 and vid.width/vid.height now, we need them to be between -1 and 1 From 514dc44f7536e20d2985db7b21aa63b14de5cfb1 Mon Sep 17 00:00:00 2001 From: Nep2Disk Date: Wed, 26 Feb 2025 21:03:56 +0000 Subject: [PATCH 2/3] Remove erroneous define breaking PolyObject player movement there are no other #ifdef POLYOBJECTS defines in source so this was left by accident I assume? --- src/p_user.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/p_user.c b/src/p_user.c index 63f43bdab..fad6f5594 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -1958,9 +1958,7 @@ static void P_3dMovement(player_t *player) else if (player->onconveyor == 4 && !P_IsObjectOnGround(player->mo)) // Actual conveyor belt player->cmomx = player->cmomy = 0; else if (player->onconveyor != 2 && player->onconveyor != 4 -#ifdef POLYOBJECTS && player->onconveyor != 1 -#endif ) player->cmomx = player->cmomy = 0; From 751418845ddedbfc081192b2a4694c49016cce81 Mon Sep 17 00:00:00 2001 From: Nep2Disk Date: Sat, 1 Mar 2025 15:22:54 +0000 Subject: [PATCH 3/3] This should be flags2 --- src/p_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_user.c b/src/p_user.c index 63f43bdab..beab21c38 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -1105,7 +1105,7 @@ mobj_t *P_SpawnGhostMobj(mobj_t *mobj) ghost->spriteyoffset = mobj->spriteyoffset; if (mobj->flags2 & MF2_OBJECTFLIP) - ghost->flags |= MF2_OBJECTFLIP; + ghost->flags2 |= MF2_OBJECTFLIP; if (!(mobj->flags & MF_DONTENCOREMAP)) ghost->flags &= ~MF_DONTENCOREMAP;