]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix gameversion logic :(
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 23 Aug 2011 19:25:09 +0000 (19:25 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 23 Aug 2011 19:25:09 +0000 (19:25 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11291 d7cf8633-e32d-0410-b094-e92efae38249

netconn.c

index eefae3ad4c67e99c2ae5ab05c60d3f038a7eb23c..c6b3ea03a3278f6e202a1fdde48da1f7a4de1548 100755 (executable)
--- 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);