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:
parent
d5f1d8ad04
commit
bca295bb97
@ -457,17 +457,17 @@ bool NetworkHttp::conditionFulfilled(const std::string &cond)
|
|||||||
int stk_version = versionToInt(STK_VERSION);
|
int stk_version = versionToInt(STK_VERSION);
|
||||||
if(cond[1]=="=")
|
if(cond[1]=="=")
|
||||||
{
|
{
|
||||||
if(news_version!=stk_version) return false;
|
if(stk_version!=news_version) return false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if(cond[1]=="<")
|
if(cond[1]=="<")
|
||||||
{
|
{
|
||||||
if(news_version>=stk_version) return false;
|
if(stk_version>=news_version) return false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if(cond[1]==">")
|
if(cond[1]==">")
|
||||||
{
|
{
|
||||||
if(news_version<=stk_version) return false;
|
if(stk_version<=news_version) return false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
printf("Invalid comparison in condition '%s' - assumed true.\n",
|
printf("Invalid comparison in condition '%s' - assumed true.\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user