From 9898876f27be8c362dff65ee13d521adc45ba9a1 Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 26 May 2015 00:48:10 +0000 Subject: [PATCH] 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 --- polymer/eduke32/build/src/defs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/build/src/defs.c b/polymer/eduke32/build/src/defs.c index 2dd297f19..233b994f2 100644 --- a/polymer/eduke32/build/src/defs.c +++ b/polymer/eduke32/build/src/defs.c @@ -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