mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Kill MODID
SRB2APPLICATION has replaced all of its uses in the modern Master Server, let's not keep this old cruft around. Exposed to Lua as "APPLICATION", in all caps.
This commit is contained in:
		
							parent
							
								
									e19ed5bc29
								
							
						
					
					
						commit
						c157acf9be
					
				
					 3 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -5178,7 +5178,7 @@ static void Command_Version_f(void)
 | 
			
		|||
#ifdef UPDATE_ALERT
 | 
			
		||||
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
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4479,7 +4479,6 @@ struct int_const_s const INT_CONST[] = {
 | 
			
		|||
	{"MUSICRATE",MUSICRATE},
 | 
			
		||||
	{"RING_DIST",RING_DIST},
 | 
			
		||||
	{"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.
 | 
			
		||||
	{"CODEBASE",CODEBASE}, // or what release of SRB2 this is.
 | 
			
		||||
	{"NEWTICRATE",NEWTICRATE}, // TICRATE*NEWTICRATERATIO
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -336,6 +336,10 @@ int LUA_PushGlobals(lua_State *L, const char *word)
 | 
			
		|||
	} else if (fastcmp(word,"VERSIONSTRING")) {
 | 
			
		||||
		lua_pushstring(L, VERSIONSTRING);
 | 
			
		||||
		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")) {
 | 
			
		||||
		lua_pushinteger(L, gamespeed);
 | 
			
		||||
		return 1;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue