[ReplicateGravity] Hopefully prevents replicating sv_gravity 0.0

This commit is contained in:
zaCade 2024-05-23 19:03:42 +02:00
parent abc69e4807
commit c179346262

View File

@ -46,6 +46,9 @@ public void OnGameFrame()
} }
float flClientGravity = GetEntityGravity(client); float flClientGravity = GetEntityGravity(client);
if (flClientGravity == 0.0)
flClientGravity = 1.0;
float flClientGravityReplicate = flClientGravity * flServerGravity; float flClientGravityReplicate = flClientGravity * flServerGravity;
if (flClientGravityReplicate != g_flClientGravityReplicate[client]) if (flClientGravityReplicate != g_flClientGravityReplicate[client])