mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Made states unmodifable in CMD building code
This commit is contained in:
parent
ae238236c8
commit
bff3b20c4a
1 changed files with 2 additions and 0 deletions
|
|
@ -919,6 +919,8 @@ static int state_set(lua_State *L)
|
|||
|
||||
if (hud_running)
|
||||
return luaL_error(L, "Do not alter states in HUD rendering code!");
|
||||
if (hook_cmd_running)
|
||||
return luaL_error(L, "Do not alter states in CMD building code!");
|
||||
|
||||
if (fastcmp(field,"sprite")) {
|
||||
value = luaL_checknumber(L, 3);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue