Add line numbers to a couple of .def parsing warning messages. At some point these should probably all be cleaned up, similar to how they're handled with CON parsing. DONT_BUILD.

git-svn-id: https://svn.eduke32.com/eduke32@5243 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2015-05-26 00:48:10 +00:00
parent 37bbdd500b
commit 9898876f27

View file

@ -1364,14 +1364,16 @@ static int32_t defsparser(scriptfile *script)
if (EDUKE32_PREDICT_FALSE(lastmodelid < 0))
{
#ifdef USE_OPENGL
initprintf("Warning: Ignoring frame definition.\n");
initprintf("Warning: ignoring frame definition on line %s:%d.\n",
script->filename, scriptfile_getlinum(script,frametokptr));
#endif
break;
}
if (smoothduration > 1.0)
{
initprintf("Warning: smoothduration out of range.\n");
initprintf("Warning: smoothduration out of range on line %s:%d.\n",
script->filename, scriptfile_getlinum(script,frametokptr));
smoothduration = 1.0;
}
#ifdef USE_OPENGL