Adjust for our needs

This commit is contained in:
NepDisk 2025-09-21 15:20:41 -04:00
parent eb4d4717e5
commit b769bcd295
2 changed files with 3 additions and 4 deletions

View file

@ -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;

View file

@ -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