mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
LunaCON: allow a certain type error present in 1.3D GAME.CON to pass.
git-svn-id: https://svn.eduke32.com/eduke32@4025 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
b1b043bfc7
commit
e53c50e6aa
1 changed files with 8 additions and 2 deletions
|
@ -880,14 +880,20 @@ function lookup.composite(labeltype, pos, identifier)
|
|||
end
|
||||
|
||||
local val = g_labeldef[identifier]
|
||||
local typ = g_labeltype[identifier]
|
||||
|
||||
if (val == nil) then
|
||||
perrprintf(pos, "label \"%s\" is not defined", identifier)
|
||||
return "_NOTDEF"
|
||||
elseif (g_labeltype[identifier] ~= labeltype) then
|
||||
if (identifier=="randomangle" and labeltype==LABEL.MOVE) then
|
||||
elseif (typ ~= labeltype) then
|
||||
if (identifier=="randomangle" and labeltype==LABEL.MOVE and typ==LABEL.NUMBER) then
|
||||
-- Be forgiving with a 1.3/1.5 GAME.CON type error.
|
||||
pwarnprintf(pos, "label \"randomangle\" is not a `move' value, assuming 0")
|
||||
return "0"
|
||||
elseif (identifier=="BLIMPRESPAWNTIME" and labeltype==LABEL.ACTION and typ==LABEL.NUMBER) then
|
||||
-- Be forgiving with a 1.3 GAME.CON type error.
|
||||
pwarnprintf(pos, "label \"BLIMPRESPAWNTIME\" is not an `action' value, assuming 0")
|
||||
return "0"
|
||||
else
|
||||
perrprintf(pos, "label \"%s\" is not a%s `%s' value", identifier,
|
||||
labeltype==LABEL.MOVE and "" or "n", LABEL[labeltype])
|
||||
|
|
Loading…
Reference in a new issue