mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Lunatic: fix a couple of typo-like issues found by listglobals.sh. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@5026 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
d508ff2694
commit
11f81070f2
4 changed files with 8 additions and 5 deletions
|
@ -111,7 +111,7 @@ function bcheck.quote_idx(qnum, onlyidx)
|
||||||
return cstr
|
return cstr
|
||||||
end
|
end
|
||||||
|
|
||||||
function bcheck.top_level(funcname)
|
function bcheck.top_level(funcname, errlev)
|
||||||
if (ffiC.g_elCallDepth > 0) then
|
if (ffiC.g_elCallDepth > 0) then
|
||||||
error("Invalid use of "..funcname..": must be called from top level", errlev or 3)
|
error("Invalid use of "..funcname..": must be called from top level", errlev or 3)
|
||||||
end
|
end
|
||||||
|
|
|
@ -21,6 +21,7 @@ local getmetatable = getmetatable
|
||||||
local ipairs = ipairs
|
local ipairs = ipairs
|
||||||
local loadstring = loadstring
|
local loadstring = loadstring
|
||||||
local pairs = pairs
|
local pairs = pairs
|
||||||
|
local pcall = pcall
|
||||||
local rawget = rawget
|
local rawget = rawget
|
||||||
local rawset = rawset
|
local rawset = rawset
|
||||||
local select = select
|
local select = select
|
||||||
|
@ -943,7 +944,7 @@ end
|
||||||
function actor_static_members.move(i, vec, cliptype, clipdist)
|
function actor_static_members.move(i, vec, cliptype, clipdist)
|
||||||
check_sprite_idx(i)
|
check_sprite_idx(i)
|
||||||
local vel = ivec3(vec.x, vec.y, vec.z)
|
local vel = ivec3(vec.x, vec.y, vec.z)
|
||||||
return ffiC.A_MoveSpriteClipdist(spritenum, vel, cliptype, clipdist or -1)
|
return ffiC.A_MoveSpriteClipdist(i, vel, cliptype, clipdist or -1)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Delete sprite with index <i>.
|
-- Delete sprite with index <i>.
|
||||||
|
@ -2049,7 +2050,7 @@ local function animate_all_sprites()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function check_arg_number(name, argpos, val)
|
local function check_arg_number(name, argpos, val)
|
||||||
if (type(val) ~= "number") then
|
if (type(val) ~= "number") then
|
||||||
errorf(3, "invalid '%s' argument (#%d) to gameactor: must be a number", name, argpos)
|
errorf(3, "invalid '%s' argument (#%d) to gameactor: must be a number", name, argpos)
|
||||||
end
|
end
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
local ffi = require("ffi")
|
local ffi = require("ffi")
|
||||||
local ffiC = ffi.C
|
local ffiC = ffi.C
|
||||||
|
|
||||||
|
local assert = assert
|
||||||
|
local loadstring = loadstring
|
||||||
local pairs = pairs
|
local pairs = pairs
|
||||||
local pcall = pcall
|
local pcall = pcall
|
||||||
local print = print
|
local print = print
|
||||||
|
|
|
@ -1372,7 +1372,7 @@ function Cmd.xspriteflags(tilenum, flags, override)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Mark the last 'spriteflags' or 'sprite*' directive for the given actor.
|
-- Mark the last 'spriteflags' or 'sprite*' directive for the given actor.
|
||||||
g_code.aflagsloc[tilenum] = getLocation(format("'%s' for actor", g_lastkw), pos)
|
g_code.aflagsloc[tilenum] = getLocation(format("'%s' for actor", g_lastkw))
|
||||||
|
|
||||||
if (ffi and ok) then
|
if (ffi and ok) then
|
||||||
local tile = ffiC.g_tile[tilenum]
|
local tile = ffiC.g_tile[tilenum]
|
||||||
|
@ -3892,7 +3892,7 @@ function parse(contents) -- local
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function compare_gv(gva, gvb)
|
local function compare_gv(gva, gvb)
|
||||||
if (gva.loc[1] ~= gvb.loc[1]) then
|
if (gva.loc[1] ~= gvb.loc[1]) then
|
||||||
return gva.loc[1] < gvb.loc[1]
|
return gva.loc[1] < gvb.loc[1]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue