-// example: 2.6.3
-// gameversion 20603
-// gameversion_min 20500
-// gameversion_max 20799
-// however, in 2.5.x, we will:
-// gameversion = 20000 // let other 2.5 clients connect
-// gameversion_min = 20000 // 2.5.x still has this, we cannot block it within 2.5
-// however, in 2.6.x, we will just:
-// gameversion_min = 20000 // show 2.5 servers
+// so, for a given gameversion, _min and _max calculate as follows:
+// gameversion_min = (gameversion / 100) * 100 - 100
+// gameversion_max = (gameversion / 100) * 100 + 199
+
+// changes a cvar and reports it to the server (for the menu to notify the
+// server about changes)
+alias setreport "set \"$1\" \"$2\" ; sendcvar \"$1\""
+
+// detect dedicated server or client
+alias "_detect_dedicated_$qport" "$*"
+alias "_detect_dedicated_0" ""
+alias if_dedicated "_detect_dedicated_$qport ${* asis}"
+alias if_client "${* asis}"
+if_dedicated alias if_client ""
+
+seta g_configversion 0 "Configuration file version (used to upgrade settings) 0: first run, or previous start was <2.4.1 Later, it's overridden by config.cfg, version ranges are defined in config_update.cfg"