From: divverent Date: Tue, 23 Aug 2011 19:25:09 +0000 (+0000) Subject: fix gameversion logic :( X-Git-Tag: xonotic-v0.6.0~163^2~261 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f12c4bedb532281dad05e0d75addbf6762d36228;p=xonotic%2Fdarkplaces.git fix gameversion logic :( git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11291 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/netconn.c b/netconn.c index eefae3ad..c6b3ea03 100755 --- a/netconn.c +++ b/netconn.c @@ -413,8 +413,8 @@ static void ServerList_ViewList_Insert( serverlist_entry_t *entry ) !( gameversion_min.integer >= 0 // min/max range set by user/mod? && gameversion_max.integer >= 0 - && gameversion_min.integer >= entry->info.gameversion // version of server in min/max range? - && gameversion_max.integer <= entry->info.gameversion + && gameversion_min.integer <= entry->info.gameversion // version of server in min/max range? + && gameversion_max.integer >= entry->info.gameversion ) ) return; @@ -1498,8 +1498,8 @@ static void NetConn_ClientParsePacket_ServerList_UpdateCache(int n) !( gameversion_min.integer >= 0 // min/max range set by user/mod? && gameversion_max.integer >= 0 - && gameversion_min.integer >= info->gameversion // version of server in min/max range? - && gameversion_max.integer <= info->gameversion + && gameversion_min.integer <= info->gameversion // version of server in min/max range? + && gameversion_max.integer >= info->gameversion ) ) ? '1' : '4', info->mod, info->map);