From 4654a2aaa0c7a48583ec3e1b2b3d1c0923afc0cd Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sun, 18 Nov 2012 12:43:11 -0500 Subject: [PATCH] update build number, which was incorrect. Add an easy way for mods to ignore updates --- src/Config.h | 4 +++- src/client/Client.cpp | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Config.h b/src/Config.h index 5d2a1a5cf..44ca23fee 100644 --- a/src/Config.h +++ b/src/Config.h @@ -25,7 +25,7 @@ #endif #ifndef BUILD_NUM -#define BUILD_NUM 248 +#define BUILD_NUM 249 #endif #ifndef SNAPSHOT_ID @@ -40,6 +40,8 @@ #endif //VersionInfoEnd +//#define IGNORE_UPDATES //uncomment this for mods, to not get any update notifications + #if defined(SNAPSHOT) #define IDENT_RELTYPE "S" #elif defined(BETA) diff --git a/src/client/Client.cpp b/src/client/Client.cpp index 763814a35..99c6b5bf3 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -623,10 +623,12 @@ void Client::Tick() } #endif +#ifndef IGNORE_UPDATES if(updateAvailable) { notifyUpdateAvailable(); } +#endif } catch (json::Exception &e) {