mirror of
				https://github.com/KartKrewDev/RingRacers.git
				synced 2025-10-30 08:01:28 +00:00 
			
		
		
		
	Merge remote-tracking branch 'wolfy852/next' into next
This commit is contained in:
		
						commit
						6b112a3bfd
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -85,6 +85,13 @@ static int lib_print(lua_State *L)
 | 
			
		|||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int lib_evalMath(lua_State *L)
 | 
			
		||||
{
 | 
			
		||||
	const char *word = luaL_checkstring(L, 1);
 | 
			
		||||
	lua_pushinteger(L, LUA_EvalMath(word));
 | 
			
		||||
	return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// M_RANDOM
 | 
			
		||||
//////////////
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1633,6 +1640,7 @@ static int lib_gTicsToMilliseconds(lua_State *L)
 | 
			
		|||
 | 
			
		||||
static luaL_Reg lib[] = {
 | 
			
		||||
	{"print", lib_print},
 | 
			
		||||
	{"EvalMath", lib_evalMath,},
 | 
			
		||||
 | 
			
		||||
	// m_random
 | 
			
		||||
	{"P_Random",lib_pRandom},
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue