mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
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:
parent
4a02ec7e9b
commit
af2e9e8cf1
1 changed files with 3 additions and 1 deletions
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue