Skip to content

Commit 6088239

Browse files
videoPtaysta
authored andcommitted
no nocartwheelz in racemode?
(cherry picked from commit 763a20b)
1 parent 4f6a618 commit 6088239

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codemp/game/bg_saber.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2450,12 +2450,12 @@ saberMoveName_t PM_SaberAttackForMovement(saberMoveName_t curmove)
24502450
}
24512451
}
24522452

2453-
if (client && client->pers.noCartwheel) {
2453+
if (client && client->pers.noCartwheel && !pm->ps->stats[STAT_RACEMODE]) {
24542454
allowCartwheels = qfalse;
24552455
}
24562456
}
24572457
#else
2458-
if (cgs.serverMod == SVMOD_JAPRO && (cp_pluginDisable.integer & JAPRO_PLUGIN_NOCART)) {
2458+
if (cgs.serverMod == SVMOD_JAPRO && (cp_pluginDisable.integer & JAPRO_PLUGIN_NOCART) && !pm->ps->stats[STAT_RACEMODE]) {
24592459
allowCartwheels = qfalse;
24602460
}
24612461
#endif

0 commit comments

Comments
 (0)