mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 03:51:50 +00:00
Merge branch 'mod-id-kill' into 'master'
Version number maintenance See merge request KartKrew/Kart!2235
This commit is contained in:
commit
2fda2bc270
7 changed files with 15 additions and 23 deletions
|
|
@ -2364,17 +2364,13 @@ static boolean CV_FilterVarByVersion(consvar_t *v, const char *valstr)
|
||||||
if (!(v->flags & CV_SAVE))
|
if (!(v->flags & CV_SAVE))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (GETMAJOREXECVERSION(cv_execversion.value) < 2) // 2 = 1.0.2
|
#if 0 // We don't have changed saved cvars yet
|
||||||
|
if (GETMAJOREXECVERSION(cv_execversion.value) < 2)
|
||||||
{
|
{
|
||||||
#if 0
|
if (!stricmp(v->name, "example"))
|
||||||
// We don't have changed saved cvars yet
|
|
||||||
if (!stricmp(v->name, "alwaysmlook")
|
|
||||||
|| !stricmp(v->name, "alwaysmlook2")
|
|
||||||
|| !stricmp(v->name, "mousemove")
|
|
||||||
|| !stricmp(v->name, "mousemove2"))
|
|
||||||
return false;
|
return false;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5178,7 +5178,7 @@ static void Command_Version_f(void)
|
||||||
#ifdef UPDATE_ALERT
|
#ifdef UPDATE_ALERT
|
||||||
static void Command_ModDetails_f(void)
|
static void Command_ModDetails_f(void)
|
||||||
{
|
{
|
||||||
CONS_Printf(M_GetText("Mod ID: %d\nMod Version: %d\nCode Base:%d\n"), MODID, MODVERSION, CODEBASE);
|
CONS_Printf(M_GetText("Mod App Name: %s\nMod Version: %d\nCode Base:%d\n"), SRB2APPLICATION, MODVERSION, CODEBASE);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4479,7 +4479,6 @@ struct int_const_s const INT_CONST[] = {
|
||||||
{"MUSICRATE",MUSICRATE},
|
{"MUSICRATE",MUSICRATE},
|
||||||
{"RING_DIST",RING_DIST},
|
{"RING_DIST",RING_DIST},
|
||||||
{"PUSHACCEL",PUSHACCEL},
|
{"PUSHACCEL",PUSHACCEL},
|
||||||
{"MODID",MODID}, // I don't know, I just thought it would be cool for a wad to potentially know what mod it was loaded into.
|
|
||||||
{"MODVERSION",MODVERSION}, // or what version of the mod this is.
|
{"MODVERSION",MODVERSION}, // or what version of the mod this is.
|
||||||
{"CODEBASE",CODEBASE}, // or what release of SRB2 this is.
|
{"CODEBASE",CODEBASE}, // or what release of SRB2 this is.
|
||||||
{"NEWTICRATE",NEWTICRATE}, // TICRATE*NEWTICRATERATIO
|
{"NEWTICRATE",NEWTICRATE}, // TICRATE*NEWTICRATERATIO
|
||||||
|
|
|
||||||
|
|
@ -126,8 +126,8 @@ extern char logfilename[1024];
|
||||||
// the other options the same.
|
// the other options the same.
|
||||||
|
|
||||||
// Comment out this line to completely disable update alerts (recommended for testing, but not for release)
|
// Comment out this line to completely disable update alerts (recommended for testing, but not for release)
|
||||||
#ifndef BETAVERSION
|
#if !defined(BETAVERSION) && !defined(DEVELOP)
|
||||||
//#define UPDATE_ALERT
|
#define UPDATE_ALERT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// The string used in the alert that pops up in the event of an update being available.
|
// The string used in the alert that pops up in the event of an update being available.
|
||||||
|
|
@ -137,9 +137,7 @@ extern char logfilename[1024];
|
||||||
"Please visit kartkrew.org to download it.\n"\
|
"Please visit kartkrew.org to download it.\n"\
|
||||||
"\n"\
|
"\n"\
|
||||||
"You are using version: %s\n"\
|
"You are using version: %s\n"\
|
||||||
"The newest version is: %s\n"\
|
"The newest version is: %s\n"
|
||||||
"\n"\
|
|
||||||
"(Press a key)\n"
|
|
||||||
|
|
||||||
// For future use, the codebase is the version of SRB2 that the modification is based on,
|
// For future use, the codebase is the version of SRB2 that the modification is based on,
|
||||||
// and should not be changed unless you have merged changes between versions of SRB2
|
// and should not be changed unless you have merged changes between versions of SRB2
|
||||||
|
|
|
||||||
|
|
@ -336,6 +336,10 @@ int LUA_PushGlobals(lua_State *L, const char *word)
|
||||||
} else if (fastcmp(word,"VERSIONSTRING")) {
|
} else if (fastcmp(word,"VERSIONSTRING")) {
|
||||||
lua_pushstring(L, VERSIONSTRING);
|
lua_pushstring(L, VERSIONSTRING);
|
||||||
return 1;
|
return 1;
|
||||||
|
} else if (fastcmp(word,"APPLICATION")) {
|
||||||
|
// I don't know, I just thought it would be cool for a wad to potentially know what mod it was loaded into.
|
||||||
|
lua_pushstring(L, SRB2APPLICATION);
|
||||||
|
return 1;
|
||||||
} else if (fastcmp(word,"gamespeed")) {
|
} else if (fastcmp(word,"gamespeed")) {
|
||||||
lua_pushinteger(L, gamespeed);
|
lua_pushinteger(L, gamespeed);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
||||||
|
|
@ -205,7 +205,7 @@ static void M_CheckMODVersion(int id)
|
||||||
#ifdef HAVE_THREADS
|
#ifdef HAVE_THREADS
|
||||||
I_lock_mutex(&k_menu_mutex);
|
I_lock_mutex(&k_menu_mutex);
|
||||||
#endif
|
#endif
|
||||||
M_StartMessage("Game Update", updatestring, NULL, MM_NOTHING, NULL, NULL);
|
M_StartMessage("Game Update", updatestring, NULL, MM_NOTHING, NULL, "Return to Menu");
|
||||||
#ifdef HAVE_THREADS
|
#ifdef HAVE_THREADS
|
||||||
I_unlock_mutex(k_menu_mutex);
|
I_unlock_mutex(k_menu_mutex);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,10 @@
|
||||||
#define SRB2VERSION "1.0"/* this must be the first line, for cmake !! */
|
#define SRB2VERSION "2.0"/* this must be the first line, for cmake !! */
|
||||||
|
|
||||||
// The Modification ID; must be obtained from a Master Server Admin ( https://mb.srb2.org/showgroups.php ).
|
|
||||||
// DO NOT try to set this otherwise, or your modification will be unplayable through the Master Server.
|
|
||||||
// "17" is the default mod ID for SRB2Kart.
|
|
||||||
#define MODID 17
|
|
||||||
|
|
||||||
// The Modification Version, starting from 1. Do not follow your version string for this,
|
// The Modification Version, starting from 1. Do not follow your version string for this,
|
||||||
// it's only for detection of the version the player is using so the MS can alert them of an update.
|
// it's only for detection of the version the player is using so the MS can alert them of an update.
|
||||||
// Only set it higher, not lower, obviously.
|
// Only set it higher, not lower, obviously.
|
||||||
// Note that we use this to help keep internal testing in check; this is why v2.0 is not version "2".
|
// Note that we use this to help keep internal testing in check; this is why v2.0 is not version "2".
|
||||||
#define MODVERSION 6
|
#define MODVERSION 1
|
||||||
|
|
||||||
// Define this as a prerelease version suffix
|
// Define this as a prerelease version suffix
|
||||||
// #define BETAVERSION "Alpha"
|
// #define BETAVERSION "Alpha"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue