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
This commit is contained in:
hikerstk 2011-03-31 02:39:20 +00:00
parent d5f1d8ad04
commit bca295bb97

View File

@ -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",