mirror of
https://github.com/Ed94/Cog.git
synced 2026-06-13 08:02:23 -07:00
CogWindow: Rename CreateWindow to AddWindow to prevent name conflict with windows headers
CogSample : Projectile progress
This commit is contained in:
@@ -226,6 +226,8 @@ const ACogSamplePlayerController* ACogSamplePlayerController::GetFirstLocalPlaye
|
||||
//--------------------------------------------------------------------------------------------------------------------------
|
||||
float ACogSamplePlayerController::GetClientLag() const
|
||||
{
|
||||
return (PlayerState != nullptr && GetNetMode() != NM_Standalone) ? (0.0001f * 0.5f * PlayerState->ExactPing) : 0.f;
|
||||
const float Ping = (PlayerState != nullptr && GetNetMode() != NM_Standalone) ? PlayerState->ExactPing : 0.0f;
|
||||
const float HalfPingInSeconds = Ping * 0.0001f * 0.5f;
|
||||
return HalfPingInSeconds;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user