mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
Prevent a special stage win by sneaking ahead of the UFO to the goal line
This commit is contained in:
parent
5b027ff2fe
commit
6b18f869b9
1 changed files with 9 additions and 0 deletions
|
|
@ -43,6 +43,7 @@
|
||||||
|
|
||||||
// SRB2kart
|
// SRB2kart
|
||||||
#include "k_kart.h"
|
#include "k_kart.h"
|
||||||
|
#include "k_specialstage.h"
|
||||||
#include "console.h" // CON_LogMessage
|
#include "console.h" // CON_LogMessage
|
||||||
#include "k_respawn.h"
|
#include "k_respawn.h"
|
||||||
#include "k_terrain.h"
|
#include "k_terrain.h"
|
||||||
|
|
@ -1925,6 +1926,14 @@ static void K_HandleLapIncrement(player_t *player)
|
||||||
// finished race exit setup
|
// finished race exit setup
|
||||||
if (player->laps > numlaps)
|
if (player->laps > numlaps)
|
||||||
{
|
{
|
||||||
|
if (specialstageinfo.valid == true)
|
||||||
|
{
|
||||||
|
// Don't permit a win just by sneaking ahead of the UFO/emerald.
|
||||||
|
if (!(specialstageinfo.ufo == NULL || P_MobjWasRemoved(specialstageinfo.ufo)))
|
||||||
|
{
|
||||||
|
player->pflags |= PF_NOCONTEST;
|
||||||
|
}
|
||||||
|
}
|
||||||
P_DoPlayerExit(player);
|
P_DoPlayerExit(player);
|
||||||
P_SetupSignExit(player);
|
P_SetupSignExit(player);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue