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:
helixhorned 2013-05-24 13:54:39 +00:00
parent 6f94af7399
commit c366388a9e
4 changed files with 8 additions and 2 deletions

View file

@ -9905,6 +9905,10 @@ void El_CreateGameState(void)
if (i)
G_GameExit("Failure setting up Lunatic!");
# if !defined DEBUGGINGAIDS
El_ClearErrors();
# endif
}
#endif

View file

@ -15,6 +15,7 @@ numsectors;
numwalls;
numyaxbunches;
spritesortcnt;
guniqhudid;
rendmode;
totalclock;

View file

@ -15,6 +15,7 @@ numsectors;
numwalls;
numyaxbunches;
spritesortcnt;
guniqhudid;
rendmode;
totalclock;

View file

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