mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +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)
|
||||
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"))
|
||||
cmd->forwardmove = (SINT8)luaL_checkinteger(L, 3);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue