From bca295bb97974a8f93d58b829152bca044cef923 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Thu, 31 Mar 2011 02:39:20 +0000 Subject: [PATCH] Fixed stk version tests for news messages. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8141 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/addons/network_http.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/addons/network_http.cpp b/src/addons/network_http.cpp index 94a5b92f1..f0661cf77 100644 --- a/src/addons/network_http.cpp +++ b/src/addons/network_http.cpp @@ -457,17 +457,17 @@ bool NetworkHttp::conditionFulfilled(const std::string &cond) int stk_version = versionToInt(STK_VERSION); if(cond[1]=="=") { - if(news_version!=stk_version) return false; + if(stk_version!=news_version) return false; continue; } if(cond[1]=="<") { - if(news_version>=stk_version) return false; + if(stk_version>=news_version) return false; continue; } if(cond[1]==">") { - if(news_version<=stk_version) return false; + if(stk_version<=news_version) return false; continue; } printf("Invalid comparison in condition '%s' - assumed true.\n",