mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
FinishTime, FinishTimeExact, FinishTimeLeft conditions: Guarantee all Prison Eggs are broken before awarding
Fixes how running out of time activated the Death Egg's Eye challenge Done this way to avoid extensive last minute unlocks.pk3 update
This commit is contained in:
parent
ddc91276cd
commit
4794440eea
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