mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
Undo 53dfb4c8
This commit is contained in:
parent
f5a0d52749
commit
4d8fe70aa7
2 changed files with 23 additions and 4 deletions
|
|
@ -1682,6 +1682,25 @@ static int lib_rSetPlayerSkin(lua_State *L)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// R_DATA
|
||||||
|
////////////
|
||||||
|
|
||||||
|
static int lib_rCheckTextureNumForName(lua_State *L)
|
||||||
|
{
|
||||||
|
const char *name = luaL_checkstring(L, 1);
|
||||||
|
//HUDSAFE
|
||||||
|
lua_pushinteger(L, R_CheckTextureNumForName(name));
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int lib_rTextureNumForName(lua_State *L)
|
||||||
|
{
|
||||||
|
const char *name = luaL_checkstring(L, 1);
|
||||||
|
//HUDSAFE
|
||||||
|
lua_pushinteger(L, R_TextureNumForName(name));
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
// S_SOUND
|
// S_SOUND
|
||||||
////////////
|
////////////
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -795,16 +795,16 @@ static int side_set(lua_State *L)
|
||||||
side->rowoffset = luaL_checkfixed(L, 3);
|
side->rowoffset = luaL_checkfixed(L, 3);
|
||||||
break;
|
break;
|
||||||
case side_toptexture:
|
case side_toptexture:
|
||||||
side->toptexture = luaL_checkinteger(L, 3);
|
side->toptexture = luaL_checkinteger(L, 3);
|
||||||
break;
|
break;
|
||||||
case side_bottomtexture:
|
case side_bottomtexture:
|
||||||
side->bottomtexture = luaL_checkinteger(L, 3);
|
side->bottomtexture = luaL_checkinteger(L, 3);
|
||||||
break;
|
break;
|
||||||
case side_midtexture:
|
case side_midtexture:
|
||||||
side->midtexture = luaL_checkinteger(L, 3);
|
side->midtexture = luaL_checkinteger(L, 3);
|
||||||
break;
|
break;
|
||||||
case side_repeatcnt:
|
case side_repeatcnt:
|
||||||
side->repeatcnt = luaL_checkinteger(L, 3);
|
side->repeatcnt = luaL_checkinteger(L, 3);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue