mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 02:18:26 +00:00
Fixed error on map finish when there's no "noimprovement" sounds.
This commit is contained in:
parent
203644d1d2
commit
202d893802
@ -188,7 +188,7 @@ public void OnMapStart()
|
||||
|
||||
public void Shavit_OnFinish(int client, int style, float time, int jumps, int strafes, float sync, int track, float oldtime, float perfs)
|
||||
{
|
||||
if(oldtime != 0.0 && time > oldtime)
|
||||
if(oldtime != 0.0 && time > oldtime && gA_NoImprovementSounds.Length != 0)
|
||||
{
|
||||
char sSound[PLATFORM_MAX_PATH];
|
||||
gA_NoImprovementSounds.GetString(GetRandomInt(0, gA_NoImprovementSounds.Length - 1), sSound, PLATFORM_MAX_PATH);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user