On the recommendation of Sryder, revert everything relating to the `cpusleep` changes except for the new default value of 1.

This commit is contained in:
toaster 2019-10-13 13:12:07 +01:00
parent 6033f70b01
commit 0350262a0f
3 changed files with 3 additions and 3 deletions

View File

@ -187,7 +187,7 @@ static CV_PossibleValue_t joyport_cons_t[] = {{1, "/dev/js0"}, {2, "/dev/js1"},
static CV_PossibleValue_t teamscramble_cons_t[] = {{0, "Off"}, {1, "Random"}, {2, "Points"}, {0, NULL}};
static CV_PossibleValue_t startingliveslimit_cons_t[] = {{1, "MIN"}, {99, "MAX"}, {0, NULL}};
static CV_PossibleValue_t sleeping_cons_t[] = {{0, "MIN"}, {1000/TICRATE, "MAX"}, {0, NULL}};
static CV_PossibleValue_t sleeping_cons_t[] = {{-1, "MIN"}, {1000/TICRATE, "MAX"}, {0, NULL}};
static CV_PossibleValue_t competitionboxes_cons_t[] = {{0, "Normal"}, {1, "Mystery"}, //{2, "Teleport"},
{3, "None"}, {0, NULL}};

View File

@ -2135,7 +2135,7 @@ void I_StartupTimer(void)
void I_Sleep(void)
{
if (cv_sleep.value > 0)
if (cv_sleep.value != -1)
SDL_Delay(cv_sleep.value);
}

View File

@ -261,7 +261,7 @@ tic_t I_GetTime(void)
void I_Sleep(void)
{
if (cv_sleep.value > 0)
if (cv_sleep.value != -1)
Sleep(cv_sleep.value);
}