CogWindow: Rename CreateWindow to AddWindow to prevent name conflict with windows headers

CogSample : Projectile progress
This commit is contained in:
Arnaud Jamin
2023-10-30 23:44:24 -04:00
parent 315782183d
commit 7f88f5d53a
10 changed files with 73 additions and 47 deletions
@@ -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;
}