[ReplicateGravity] Hopefully prevents replicating sv_gravity 0.0
This commit is contained in:
parent
abc69e4807
commit
c179346262
@ -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])
|
||||||
|
Loading…
Reference in New Issue
Block a user