From f12c4bedb532281dad05e0d75addbf6762d36228 Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 23 Aug 2011 19:25:09 +0000 Subject: [PATCH] fix gameversion logic :( git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11291 d7cf8633-e32d-0410-b094-e92efae38249 --- netconn.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); -- 2.39.2