fixes for physics
This commit is contained in:
@@ -117,6 +117,7 @@ extern "C" void FunnyMain( int argc, char **argv )
|
||||
SteamAPI_RunCallbacks();
|
||||
#endif
|
||||
double fCurrent = Plat_GetTime();
|
||||
double fStart = Plat_GetTime();
|
||||
double fDelta = fCurrent-fPrevious;
|
||||
fPrevious = fCurrent;
|
||||
|
||||
@@ -124,15 +125,23 @@ extern "C" void FunnyMain( int argc, char **argv )
|
||||
g_pHumanDeviceManager->Frame();
|
||||
g_pServerGame->m_pBridge->Frame(fDelta);
|
||||
|
||||
fCurrent = Plat_GetTime();
|
||||
|
||||
if (!stConstants.m_bIsDedicated)
|
||||
{
|
||||
|
||||
g_pWindowManager->Frame(fDelta);
|
||||
g_pClientGame->m_pBridge->Frame(fDelta);
|
||||
g_pRenderContext->Frame(fDelta);
|
||||
|
||||
fCurrent = Plat_GetTime();
|
||||
}
|
||||
|
||||
Console()->Execute();
|
||||
|
||||
|
||||
fCurrent = Plat_GetTime();
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user