Update ud.config.LastUpdateCheck even when G_GetVersionFromWebsite() fails. SourceForge was down today and it irritated me.

git-svn-id: https://svn.eduke32.com/eduke32@3988 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2013-08-06 23:52:49 +00:00
parent 4a02ec7e9b
commit af2e9e8cf1

View file

@ -11254,10 +11254,12 @@ int32_t app_main(int32_t argc, const char **argv)
if (time(NULL) - ud.config.LastUpdateCheck > UPDATEINTERVAL) if (time(NULL) - ud.config.LastUpdateCheck > UPDATEINTERVAL)
{ {
initprintf("Checking for updates...\n"); initprintf("Checking for updates...\n");
ud.config.LastUpdateCheck = time(NULL);
if (G_GetVersionFromWebsite(tempbuf)) if (G_GetVersionFromWebsite(tempbuf))
{ {
initprintf("Current version is %d",Batoi(tempbuf)); initprintf("Current version is %d",Batoi(tempbuf));
ud.config.LastUpdateCheck = time(NULL);
if (Batoi(tempbuf) > atoi(s_buildDate)) if (Batoi(tempbuf) > atoi(s_buildDate))
{ {