game.cpp: fixed GL vsync resetting issue due to system_getcvars() call coming before cvars were loaded

git-svn-id: https://svn.eduke32.com/eduke32@6682 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
pogokeen 2018-02-22 01:05:18 +00:00
parent 92091a4425
commit 94246b5dd1

View file

@ -6503,8 +6503,6 @@ int app_main(int argc, char const * const * argv)
for (bssize_t i = MINIFONT + ('a'-'!'); minitext_lowercase && i < MINIFONT + ('z'-'!') + 1; ++i)
minitext_lowercase &= tile_exists(i);
system_getcvars();
char *const setupFileName = Xstrdup(g_setupFileName);
char *const p = strtok(setupFileName, ".");
@ -6517,6 +6515,8 @@ int app_main(int argc, char const * const * argv)
OSD_Exec(tempbuf);
OSD_Exec("autoexec.cfg");
system_getcvars();
if (g_networkMode != NET_DEDICATED_SERVER)
{