dont give points if undefined

This commit is contained in:
shavitush 2016-07-03 00:43:32 +03:00
parent 3ea721ee22
commit cd83d4d238

View File

@ -512,6 +512,11 @@ public void Shavit_OnFinish_Post(int client, BhopStyle style, float time, int ju
Shavit_PrintToChat(client, "Points: %.02f", CalculatePoints(time, style, gF_IdealTime, gF_MapPoints)); Shavit_PrintToChat(client, "Points: %.02f", CalculatePoints(time, style, gF_IdealTime, gF_MapPoints));
#endif #endif
if(gF_MapPoints <= 0.0 || gF_IdealTime <= 0.0)
{
return;
}
float fOldPB = 0.0; float fOldPB = 0.0;
Shavit_GetPlayerPB(client, style, fOldPB); Shavit_GetPlayerPB(client, style, fOldPB);