From b769bcd295fc184a22a6b8daa7d8778593841864 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Sun, 21 Sep 2025 15:20:41 -0400 Subject: [PATCH] Adjust for our needs --- src/p_map.c | 3 ++- src/p_test.cpp | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/p_map.c b/src/p_map.c index 0317b34c3..22f893c0f 100644 --- a/src/p_map.c +++ b/src/p_map.c @@ -3501,7 +3501,8 @@ static void P_BouncePlayerMove(mobj_t *mo, TryMoveResult_t *result) tmxmove = mo->momx; tmymove = mo->momy; } - else */if (mo->eflags & MFE_JUSTBOUNCEDWALL) // Stronger push-out + else if*/ + if (mo->eflags & MFE_JUSTBOUNCEDWALL) // Stronger push-out { tmxmove = mmomx; tmymove = mmomy; diff --git a/src/p_test.cpp b/src/p_test.cpp index 9930a4434..2ffb53cbd 100644 --- a/src/p_test.cpp +++ b/src/p_test.cpp @@ -34,8 +34,6 @@ void P_TestLine(line_t* ld) line_t* P_SweepTestLines(fixed_t ax, fixed_t ay, fixed_t bx, fixed_t by, fixed_t r, vector2_t* return_normal) { - extern consvar_t cv_showgremlins; - using namespace srb2::math; using namespace srb2::sweep; @@ -70,7 +68,7 @@ line_t* P_SweepTestLines(fixed_t ax, fixed_t ay, fixed_t bx, fixed_t by, fixed_t { line_t *line = nullptr; - if (!g_lines.empty() && !G_CompatLevel(0x000E)) + if (!g_lines.empty()) { // FIXME: This condition is a failsafe! // SlopeAABBvsLine::vs_slope can sometimes report