mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-21 18:32:08 +00:00
Allow cmd to be modified using the PlayerCmd hook
This commit is contained in:
parent
117943012a
commit
cbba71051d
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…
Reference in a new issue