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-861f7616d084
master
Giel van Schijndel 2008-05-02 18:22:59 +00:00
parent 54ce38695e
commit d722cb24bb
1 changed files with 5 additions and 1 deletions

View File

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