mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'all-prisons-finish-conditions' into 'master'
FinishTime conditions: Guarantee all Prison Eggs broken before award See merge request KartKrew/Kart!2244
This commit is contained in:
commit
38274046a9
1 changed files with 3 additions and 0 deletions
|
|
@ -1822,17 +1822,20 @@ boolean M_CheckCondition(condition_t *cn, player_t *player)
|
|||
case UCRP_FINISHTIME:
|
||||
return (player->exiting
|
||||
&& !(player->pflags & PF_NOCONTEST)
|
||||
&& (!battleprisons || numtargets >= maptargets)
|
||||
//&& M_NotFreePlay()
|
||||
&& player->realtime <= (unsigned)cn->requirement);
|
||||
case UCRP_FINISHTIMEEXACT:
|
||||
return (player->exiting
|
||||
&& !(player->pflags & PF_NOCONTEST)
|
||||
&& (!battleprisons || numtargets >= maptargets)
|
||||
//&& M_NotFreePlay()
|
||||
&& player->realtime/TICRATE == (unsigned)cn->requirement/TICRATE);
|
||||
case UCRP_FINISHTIMELEFT:
|
||||
return (timelimitintics
|
||||
&& player->exiting
|
||||
&& !(player->pflags & PF_NOCONTEST)
|
||||
&& (!battleprisons || numtargets >= maptargets)
|
||||
&& !K_CanChangeRules(false) // too easy to change cv_timelimit
|
||||
&& player->realtime < timelimitintics
|
||||
&& (timelimitintics + extratimeintics + secretextratime - player->realtime) >= (unsigned)cn->requirement);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue