From af2e9e8cf1e843a22f95a88c53a198a50e730ed6 Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 6 Aug 2013 23:52:49 +0000 Subject: [PATCH] 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 --- polymer/eduke32/source/game.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index ed0895220..ed3e3dc7d 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -11254,10 +11254,12 @@ int32_t app_main(int32_t argc, const char **argv) if (time(NULL) - ud.config.LastUpdateCheck > UPDATEINTERVAL) { initprintf("Checking for updates...\n"); + + ud.config.LastUpdateCheck = time(NULL); + if (G_GetVersionFromWebsite(tempbuf)) { initprintf("Current version is %d",Batoi(tempbuf)); - ud.config.LastUpdateCheck = time(NULL); if (Batoi(tempbuf) > atoi(s_buildDate)) {