mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 02:41:49 +00:00
Allow cmd to be modified using the PlayerCmd hook
This commit is contained in:
parent
3e79966be9
commit
bb46c909ec
1 changed files with 0 additions and 2 deletions
|
|
@ -820,8 +820,6 @@ static int ticcmd_set(lua_State *L)
|
||||||
|
|
||||||
if (hud_running)
|
if (hud_running)
|
||||||
return luaL_error(L, "Do not alter player_t in HUD rendering code!");
|
return luaL_error(L, "Do not alter player_t in HUD rendering code!");
|
||||||
if (hook_cmd_running)
|
|
||||||
return luaL_error(L, "Do not alter player_t in CMD building code!");
|
|
||||||
|
|
||||||
if (fastcmp(field,"forwardmove"))
|
if (fastcmp(field,"forwardmove"))
|
||||||
cmd->forwardmove = (SINT8)luaL_checkinteger(L, 3);
|
cmd->forwardmove = (SINT8)luaL_checkinteger(L, 3);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue