mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Lunatic: -Wchained-loadactor option for LunaCON, clear errors on restart.
The last only in release builds. git-svn-id: https://svn.eduke32.com/eduke32@3813 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
6f94af7399
commit
c366388a9e
4 changed files with 8 additions and 2 deletions
|
@ -9905,6 +9905,10 @@ void El_CreateGameState(void)
|
|||
|
||||
if (i)
|
||||
G_GameExit("Failure setting up Lunatic!");
|
||||
|
||||
# if !defined DEBUGGINGAIDS
|
||||
El_ClearErrors();
|
||||
# endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@ numsectors;
|
|||
numwalls;
|
||||
numyaxbunches;
|
||||
spritesortcnt;
|
||||
guniqhudid;
|
||||
|
||||
rendmode;
|
||||
totalclock;
|
||||
|
|
|
@ -15,6 +15,7 @@ numsectors;
|
|||
numwalls;
|
||||
numyaxbunches;
|
||||
spritesortcnt;
|
||||
guniqhudid;
|
||||
|
||||
rendmode;
|
||||
totalclock;
|
||||
|
|
|
@ -109,7 +109,7 @@ local g_defaultDir = nil
|
|||
-- -Wno-bad-identifier for disabling the "bad identifier" warning.
|
||||
local g_warn = { ["not-redefined"]=true, ["bad-identifier"]=false,
|
||||
["number-conversion"]=true, ["system-gamevar"]=true,
|
||||
["error-bad-getactorvar"]=false, }
|
||||
["error-bad-getactorvar"]=false, ["chained-loadactor"]=true, }
|
||||
|
||||
-- Code generation and output options.
|
||||
local g_cgopt = { ["no"]=false, ["debug-lineinfo"]=false, ["gendir"]=nil,
|
||||
|
@ -459,7 +459,7 @@ function on.eventloadactor_end(pos, tilenum, codetab)
|
|||
addcode("end")
|
||||
addcode("end)")
|
||||
|
||||
if (g_code.loadactor[tilenum] ~= nil) then
|
||||
if (g_code.loadactor[tilenum] ~= nil and g_warn["chained-loadactor"]) then
|
||||
-- NOTE: C-CON redefines loadactor code if encountered multiple times.
|
||||
pwarnprintf(pos, "chained additional loadactor %d code", tilenum)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue