mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
UC_POWERLEVEL: Do not iterate over your profiles in GS_LEVEL
This commit is contained in:
parent
fea235d8a7
commit
cbebfe5a62
1 changed files with 4 additions and 0 deletions
|
|
@ -672,6 +672,10 @@ boolean M_CheckCondition(condition_t *cn, player_t *player)
|
||||||
case UC_POWERLEVEL: // Requires power level >= x on a certain gametype
|
case UC_POWERLEVEL: // Requires power level >= x on a certain gametype
|
||||||
{
|
{
|
||||||
UINT8 i;
|
UINT8 i;
|
||||||
|
|
||||||
|
if (gamestate == GS_LEVEL)
|
||||||
|
return false; // this one could be laggy with many profiles available
|
||||||
|
|
||||||
for (i = PROFILE_GUEST; i < PR_GetNumProfiles(); i++)
|
for (i = PROFILE_GUEST; i < PR_GetNumProfiles(); i++)
|
||||||
{
|
{
|
||||||
profile_t *p = PR_GetProfile(i);
|
profile_t *p = PR_GetProfile(i);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue