More lua fixes
This commit is contained in:
parent
10d1de9f95
commit
c25e287d40
2 changed files with 7 additions and 0 deletions
|
|
@ -302,6 +302,11 @@ static int ScanConstants(lua_State *L, boolean mathlib, const char *word)
|
|||
CacheAndPushConstant(L, word, ((lua_Integer)PF_NOCONTEST));
|
||||
return 1;
|
||||
}
|
||||
if (lua_compatmode && fastcmp(p, "FORCESTRAFE"))
|
||||
{
|
||||
CacheAndPushConstant(L, word, ((lua_Integer)0));
|
||||
return 1;
|
||||
}
|
||||
for (i = 0; PLAYERFLAG_LIST[i]; i++)
|
||||
if (fastcmp(p, PLAYERFLAG_LIST[i])) {
|
||||
CacheAndPushConstant(L, word, ((lua_Integer)1<<i));
|
||||
|
|
|
|||
|
|
@ -1639,6 +1639,8 @@ static int ticcmd_set(lua_State *L)
|
|||
|
||||
if (fastcmp(field,"forwardmove"))
|
||||
cmd->forwardmove = (SINT8)luaL_checkinteger(L, 3);
|
||||
else if (fastcmp(field,"sidemove"))
|
||||
cmd->sidemove = (SINT8)luaL_checkinteger(L, 3);
|
||||
else if (fastcmp(field,"turning"))
|
||||
cmd->turning = (INT16)luaL_checkinteger(L, 3);
|
||||
else if (fastcmp(field,"driftturn"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue