From d0a1fed3ab626a190c1df32d39314bda071c6bd6 Mon Sep 17 00:00:00 2001 From: CuteNoiRe <141606820+CuteNoiRe@users.noreply.github.com> Date: Sun, 7 Jul 2024 16:28:13 +0300 Subject: [PATCH] update mitech 2.3 --- code/botlib/be_aas_main.c | 2 +- code/botlib/be_interface.c | 2 +- code/botlib/botlib.h | 2 +- code/qcommon/cm_load.c | 4 ++-- code/qcommon/q_shared.h | 4 ++-- code/renderer2/tr_bsp.c | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/code/botlib/be_aas_main.c b/code/botlib/be_aas_main.c index 6f5bf95..01a4bcf 100644 --- a/code/botlib/be_aas_main.c +++ b/code/botlib/be_aas_main.c @@ -293,7 +293,7 @@ int AAS_LoadMap(const char *mapname) int AAS_Setup(void) { aasworld.maxclients = (int) LibVarValue("maxclients", "256"); - aasworld.maxentities = (int) LibVarValue("maxentities", "4096"); + aasworld.maxentities = (int) LibVarValue("maxentities", "16384"); // as soon as it's set to 1 the routing cache will be saved saveroutingcache = LibVar("saveroutingcache", "0"); //allocate memory for the entities diff --git a/code/botlib/be_interface.c b/code/botlib/be_interface.c index e59d560..4ad42ba 100644 --- a/code/botlib/be_interface.c +++ b/code/botlib/be_interface.c @@ -134,7 +134,7 @@ static int Export_BotLibSetup( void ) botimport.Print( PRT_MESSAGE, "------- BotLib Initialization -------\n" ); botlibglobals.maxclients = (int) LibVarValue( "maxclients", "256" ); - botlibglobals.maxentities = (int) LibVarValue( "maxentities", "4096" ); + botlibglobals.maxentities = (int) LibVarValue( "maxentities", "16384" ); errnum = AAS_Setup(); //be_aas_main.c if (errnum != BLERR_NOERROR) return errnum; diff --git a/code/botlib/botlib.h b/code/botlib/botlib.h index 5779675..eb793a7 100644 --- a/code/botlib/botlib.h +++ b/code/botlib/botlib.h @@ -445,7 +445,7 @@ name: default: module(s): description: "log" "0" l_log.c enable/disable creating a log file "maxclients" "4" be_interface.c maximum number of clients -"maxentities" "4096" be_interface.c maximum number of entities +"maxentities" "16384" be_interface.c maximum number of entities "bot_developer" "0" be_interface.c bot developer mode (it's "botDeveloper" in C to prevent symbol clash). "phys_friction" "6" be_aas_move.c ground friction diff --git a/code/qcommon/cm_load.c b/code/qcommon/cm_load.c index 58df5c8..98fc2ab 100644 --- a/code/qcommon/cm_load.c +++ b/code/qcommon/cm_load.c @@ -664,9 +664,9 @@ void CM_LoadMap( const char *name, qboolean clientload, int *checksum ) { ( (int32_t *)&header )[i] = LittleLong( ( (int32_t *)&header )[i] ); } - if ( header.version != BSP_VERSION ) { + /*if ( header.version != BSP_VERSION ) { Com_Error( ERR_DROP, "%s: %s has wrong version number (%i should be %i)", __func__, name, header.version, BSP_VERSION ); - } + }*/ for ( i = 0; i < HEADER_LUMPS; i++ ) { int32_t ofs = header.lumps[i].fileofs; diff --git a/code/qcommon/q_shared.h b/code/qcommon/q_shared.h index e68b406..576de9a 100644 --- a/code/qcommon/q_shared.h +++ b/code/qcommon/q_shared.h @@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // q_shared.h -- included first by ALL program modules. // A user mod should never modify this file -#define Q3_VERSION "MiTech 2.2" +#define Q3_VERSION "MiTech 2.3" #ifndef SVN_VERSION #define SVN_VERSION Q3_VERSION #endif @@ -1091,7 +1091,7 @@ typedef enum { #define MAX_CLIENTS 256 // absolute limit #define MAX_LOCATIONS 64 -#define GENTITYNUM_BITS 12 // don't need to send any more +#define GENTITYNUM_BITS 14 // don't need to send any more #define MAX_GENTITIES (1<version); - if ( i != BSP_VERSION ) { + /*if ( i != BSP_VERSION ) { ri.Error (ERR_DROP, "RE_LoadWorldMap: %s has wrong version number (%i should be %i)", name, i, BSP_VERSION); - } + }*/ // swap all the lumps for (i=0 ; i