From 1b308d02787f32d26b607cae3fdec96f73c3f588 Mon Sep 17 00:00:00 2001 From: Antonio Martinez Date: Sat, 24 May 2025 21:26:35 -0400 Subject: [PATCH] Perfect Round + SIGL Duel support --- src/m_cond.c | 5 ++++- src/p_mobj.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/m_cond.c b/src/m_cond.c index 5659205ee..d5901902e 100644 --- a/src/m_cond.c +++ b/src/m_cond.c @@ -1858,7 +1858,10 @@ boolean M_CheckCondition(condition_t *cn, player_t *player) && (gamespeed != KARTSPEED_EASY) && (player->tally.active == true) && (player->tally.totalExp > 0) // Only true if not Time Attack - && (player->tally.exp >= player->tally.totalExp)); + && ( + (player->tally.exp >= player->tally.totalExp) + || (K_InRaceDuel() && player->duelscore == DUELWINNINGSCORE) + ); case UCRP_FINISHALLPRISONS: return (battleprisons && !(player->pflags & PF_NOCONTEST) diff --git a/src/p_mobj.c b/src/p_mobj.c index d6782f179..9aacf8009 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -9110,7 +9110,10 @@ static boolean P_MobjRegularThink(mobj_t *mobj) && (gamespeed != KARTSPEED_EASY) && (newplayer->tally.active == true) && (newplayer->tally.totalExp > 0) // Only true if not Time Attack - && (newplayer->tally.exp >= newplayer->tally.totalExp) + && ( + (newplayer->tally.exp >= newplayer->tally.totalExp) || + (K_InRaceDuel() && newplayer->duelscore = DUELWINNINGSCORE) + ) ) { UINT8 pnum = (newplayer-players);