mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-04 02:55:50 +03:00
Merge pull request #369 from dreamstalker/refactor20170218
Small refactoring.
This commit is contained in:
commit
776ac6f2f8
@ -136,11 +136,8 @@ int RunServer()
|
|||||||
RunVGUIFrame();
|
RunVGUIFrame();
|
||||||
|
|
||||||
bool bDone = false;
|
bool bDone = false;
|
||||||
while (true)
|
while (!bDone)
|
||||||
{
|
{
|
||||||
if (bDone)
|
|
||||||
break;
|
|
||||||
|
|
||||||
// Running really fast, yield some time to other apps
|
// Running really fast, yield some time to other apps
|
||||||
sys->Sleep(1);
|
sys->Sleep(1);
|
||||||
|
|
||||||
|
@ -824,7 +824,7 @@ void Host_Speeds(double *time)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifndef SWDS
|
#ifndef SWDS
|
||||||
if (cl_gg.value != 0.0f)
|
if (cl_gg.value != 0.0f) // cvar_t cl_gamegauge
|
||||||
{
|
{
|
||||||
//sub_1D10B2D
|
//sub_1D10B2D
|
||||||
CL_GGSpeeds(time[3]);
|
CL_GGSpeeds(time[3]);
|
||||||
@ -970,7 +970,7 @@ int Host_Frame(float time, int iState, int *stateInfo)
|
|||||||
time1 = Sys_FloatTime();
|
time1 = Sys_FloatTime();
|
||||||
|
|
||||||
_Host_Frame(time);
|
_Host_Frame(time);
|
||||||
if (host_profile.value != 0.0)
|
if (host_profile.value != 0.0f)
|
||||||
time2 = Sys_FloatTime();
|
time2 = Sys_FloatTime();
|
||||||
|
|
||||||
if (giStateInfo)
|
if (giStateInfo)
|
||||||
@ -980,7 +980,7 @@ int Host_Frame(float time, int iState, int *stateInfo)
|
|||||||
Cbuf_Execute();
|
Cbuf_Execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (host_profile.value != 0.0)
|
if (host_profile.value != 0.0f)
|
||||||
{
|
{
|
||||||
static double timetotal;
|
static double timetotal;
|
||||||
static int timecount;
|
static int timecount;
|
||||||
|
@ -730,7 +730,7 @@ qboolean PM_RecursiveHullCheck(hull_t *hull, int num, float p1f, float p2f, cons
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (1)
|
while (true)
|
||||||
{
|
{
|
||||||
midf = (float)(midf - 0.05);
|
midf = (float)(midf - 0.05);
|
||||||
if (midf < 0.0)
|
if (midf < 0.0)
|
||||||
@ -773,7 +773,7 @@ qboolean PM_RecursiveHullCheck(hull_t *hull, int num, float p1f, float p2f, cons
|
|||||||
|
|
||||||
float DIST_EPSILON = 0.03125f;
|
float DIST_EPSILON = 0.03125f;
|
||||||
|
|
||||||
while (1)
|
while (true)
|
||||||
{
|
{
|
||||||
if (num < 0)
|
if (num < 0)
|
||||||
{
|
{
|
||||||
@ -896,7 +896,7 @@ qboolean PM_RecursiveHullCheck(hull_t *hull, int num, float p1f, float p2f, cons
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (1)
|
while (true)
|
||||||
{
|
{
|
||||||
midf = (float)(midf - 0.05);
|
midf = (float)(midf - 0.05);
|
||||||
if (midf < 0.0)
|
if (midf < 0.0)
|
||||||
@ -923,7 +923,5 @@ qboolean PM_RecursiveHullCheck(hull_t *hull, int num, float p1f, float p2f, cons
|
|||||||
Con_DPrintf("Trace backed up past 0.0.\n");
|
Con_DPrintf("Trace backed up past 0.0.\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
#endif // REHLDS_OPT_PEDANTIC
|
#endif // REHLDS_OPT_PEDANTIC
|
Loading…
Reference in New Issue
Block a user