Allow cmd to be modified using the PlayerCmd hook

This commit is contained in:
Zachary McAlpin 2020-07-25 20:08:41 -05:00
parent 117943012a
commit cbba71051d

View file

@ -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);