P_Ticker: Do not run antigrief detection if there are no waypoints

This commit is contained in:
toaster 2023-05-01 17:10:02 +01:00
parent ee3bf6d117
commit 3d9d9ba1e6

View file

@ -805,7 +805,7 @@ void P_Ticker(boolean run)
if ((netgame) // Antigrief is supposed to apply?
&& !(K_Cooperative() || timelimitintics > 0 || g_pointlimit > 0) // There are rules that will punish a griefing player
&& (gametyperules & GTR_CIRCUIT) && (leveltime > starttime)) // The following only detects race griefing
&& (gametyperules & GTR_CIRCUIT) && (leveltime > starttime) && K_GetNumWaypoints()) // The following only detects race griefing
{
for (i = 0; i < MAXPLAYERS; i++)
{