Fix spawnpoint metric for objective-based matches

This commit is contained in:
smallmodel committed 2024-12-17 22:48:10 +01:00
1 parent bcbe7cd870
commit 16166a36b5
1 file changed
+1 -1
+1 -1
View File
@@ -190,7 +190,7 @@ float SpawnpointMetric_Team(const vec3_t origin, DM_Team *dmTeam, const Player *
float SpawnpointMetric_Objective(const vec3_t origin, DM_Team *dmTeam, const Player *player)
{
return rand() * 0.0000000005f;
return rand() / (float)RAND_MAX;
}
CLASS_DECLARATION(Listener, DM_Team, NULL) {