mirror of
https://github.com/Q3Rally-Team/rallyunlimited-engine.git
synced 2024-11-24 05:01:07 +00:00
MiTech 3.2
MiTech 3.2
This commit is contained in:
parent
d0a1fed3ab
commit
76a99e2ab7
5 changed files with 21 additions and 16 deletions
2
Makefile
2
Makefile
|
@ -39,7 +39,7 @@ USE_VULKAN_API = 1
|
||||||
USE_RENDERER_DLOPEN = 0
|
USE_RENDERER_DLOPEN = 0
|
||||||
|
|
||||||
# valid options: opengl, vulkan, opengl2
|
# valid options: opengl, vulkan, opengl2
|
||||||
RENDERER_DEFAULT = vulkan
|
RENDERER_DEFAULT = opengl
|
||||||
|
|
||||||
CNAME = qsand_$(RENDERER_DEFAULT)
|
CNAME = qsand_$(RENDERER_DEFAULT)
|
||||||
DNAME = qsand_server
|
DNAME = qsand_server
|
||||||
|
|
|
@ -38,13 +38,7 @@ const int demo_protocols[] = { 66, 67, OLD_PROTOCOL_VERSION, NEW_PROTOCOL_VERSIO
|
||||||
|
|
||||||
#define USE_MULTI_SEGMENT // allocate additional zone segments on demand
|
#define USE_MULTI_SEGMENT // allocate additional zone segments on demand
|
||||||
|
|
||||||
#ifdef DEDICATED //1023 for 32bit - 2047 for 64bit
|
#define MIN_COMHUNKMEGS 2047 //1023 for 32bit - 2047 for 64bit
|
||||||
#define MIN_COMHUNKMEGS 2047
|
|
||||||
#define DEF_COMHUNKMEGS 2047
|
|
||||||
#else
|
|
||||||
#define MIN_COMHUNKMEGS 2047
|
|
||||||
#define DEF_COMHUNKMEGS 2047
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef USE_MULTI_SEGMENT
|
#ifdef USE_MULTI_SEGMENT
|
||||||
#define DEF_COMZONEMEGS 128
|
#define DEF_COMZONEMEGS 128
|
||||||
|
@ -52,6 +46,8 @@ const int demo_protocols[] = { 66, 67, OLD_PROTOCOL_VERSION, NEW_PROTOCOL_VERSIO
|
||||||
#define DEF_COMZONEMEGS 128
|
#define DEF_COMZONEMEGS 128
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define DEF_COMHUNKMEGS 1023 //NOT CHANGE!!!
|
||||||
|
|
||||||
static jmp_buf abortframe; // an ERR_DROP occurred, exit the entire frame
|
static jmp_buf abortframe; // an ERR_DROP occurred, exit the entire frame
|
||||||
|
|
||||||
int CPU_Flags = 0;
|
int CPU_Flags = 0;
|
||||||
|
@ -2201,7 +2197,7 @@ static void Com_InitHunkMemory( void ) {
|
||||||
Cvar_CheckRange( cv, XSTRING( MIN_COMHUNKMEGS ), NULL, CV_INTEGER );
|
Cvar_CheckRange( cv, XSTRING( MIN_COMHUNKMEGS ), NULL, CV_INTEGER );
|
||||||
Cvar_SetDescription( cv, "The size of the hunk memory segment." );
|
Cvar_SetDescription( cv, "The size of the hunk memory segment." );
|
||||||
|
|
||||||
s_hunkTotal = cv->integer * 1024 * 1024;
|
s_hunkTotal = MIN_COMHUNKMEGS * 1024 * 1024;
|
||||||
|
|
||||||
s_hunkData = calloc( s_hunkTotal + 63, 1 );
|
s_hunkData = calloc( s_hunkTotal + 63, 1 );
|
||||||
if ( !s_hunkData ) {
|
if ( !s_hunkData ) {
|
||||||
|
|
|
@ -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.
|
// q_shared.h -- included first by ALL program modules.
|
||||||
// A user mod should never modify this file
|
// A user mod should never modify this file
|
||||||
|
|
||||||
#define Q3_VERSION "MiTech 2.3"
|
#define Q3_VERSION "MiTech 3.2"
|
||||||
#ifndef SVN_VERSION
|
#ifndef SVN_VERSION
|
||||||
#define SVN_VERSION Q3_VERSION
|
#define SVN_VERSION Q3_VERSION
|
||||||
#endif
|
#endif
|
||||||
|
@ -36,18 +36,18 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
//#define DEFAULT_GAME "edawn"
|
//#define DEFAULT_GAME "edawn"
|
||||||
|
|
||||||
#define BASEGAME "MiLab"
|
#define BASEGAME "milab"
|
||||||
#define BASEDEMO "MiLabT"
|
#define BASEDEMO "milabt"
|
||||||
#define BASETA "MiLabC"
|
#define BASETA "milabc"
|
||||||
#define STEAMPATH_NAME "MiTech"
|
#define STEAMPATH_NAME "mitech"
|
||||||
#define STEAMPATH_APPID "2207"
|
#define STEAMPATH_APPID "2207"
|
||||||
#define STANDALONE 1
|
#define STANDALONE 1
|
||||||
|
|
||||||
#define MAX_TEAMNAME 32
|
#define MAX_TEAMNAME 32
|
||||||
#define MAX_MASTER_SERVERS 5 // number of supported master servers
|
#define MAX_MASTER_SERVERS 5 // number of supported master servers
|
||||||
|
|
||||||
#define GAMENAME_FOR_MASTER "MiTech"
|
#define GAMENAME_FOR_MASTER "mitech"
|
||||||
#define HEARTBEAT_FOR_MASTER "MiTech"
|
#define HEARTBEAT_FOR_MASTER "mitech"
|
||||||
|
|
||||||
#define DEMOEXT "dm_" // standard demo extension
|
#define DEMOEXT "dm_" // standard demo extension
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 77 KiB |
|
@ -71,6 +71,15 @@ int Sys_Milliseconds( void )
|
||||||
return curtime;
|
return curtime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
= *=============
|
||||||
|
Sys_Cmd
|
||||||
|
==============
|
||||||
|
*/
|
||||||
|
void Sys_Cmd( const char *command )
|
||||||
|
{
|
||||||
|
system(va("%s", command));
|
||||||
|
}
|
||||||
|
|
||||||
char *strlwr( char *s ) {
|
char *strlwr( char *s ) {
|
||||||
if ( s==NULL ) { // bk001204 - paranoia
|
if ( s==NULL ) { // bk001204 - paranoia
|
||||||
|
|
Loading…
Reference in a new issue