Allow level files (*.lev) to be empty, though give a warning when they are (LOG_WARNING)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4882 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
54ce38695e
commit
d722cb24bb
|
@ -90,7 +90,11 @@ void yyerror(const char* msg)
|
|||
|
||||
%%
|
||||
|
||||
lev_file: level_entry
|
||||
lev_file: /* Empty to allow empty files */
|
||||
{
|
||||
debug(LOG_WARNING, "Warning level file is empty (this could be intentional though).");
|
||||
}
|
||||
| level_entry
|
||||
| lev_file level_entry
|
||||
;
|
||||
|
||||
|
|
Loading…
Reference in New Issue