Skip to content

Commit

Permalink
Adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
Rushaway authored Mar 12, 2024
1 parent 8aa146d commit 8140c2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions addons/sourcemod/scripting/TopDefenders.sp
Original file line number Diff line number Diff line change
Expand Up @@ -691,12 +691,13 @@ public void OnRoundEnding(Event hEvent, const char[] sEvent, bool bDontBroadcast
bool bDynamicAvailable = false;
int iHUDChannel = -1;

#if defined _DynamicChannels_included_
int iChannel = g_cvHUDChannel.IntValue;
if (iChannel < 0 || iChannel > 6)
iChannel = 1;

bDynamicAvailable = g_bPlugin_DynamicChannels && CanTestFeatures() && GetFeatureStatus(FeatureType_Native, "GetDynamicChannel") == FeatureStatus_Available;

#if defined _DynamicChannels_included_
if (bDynamicAvailable)
iHUDChannel = GetDynamicChannel(iChannel);
#endif
Expand Down Expand Up @@ -1066,4 +1067,4 @@ public int Native_IsTopDefender(Handle plugin, int numParams)
}
}
return -1;
}
}

0 comments on commit 8140c2e

Please sign in to comment.