From d346f1ee07d67ebe4e3d0eabf6cf8bd265c67939 Mon Sep 17 00:00:00 2001 From: Garux Date: Tue, 24 Nov 2020 20:33:33 +0300 Subject: [PATCH] packer, repacker: emit warning on "model2" key been found --- tools/quake3/q3map2/autopk3.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/quake3/q3map2/autopk3.c b/tools/quake3/q3map2/autopk3.c index 21936920..e2095dd4 100644 --- a/tools/quake3/q3map2/autopk3.c +++ b/tools/quake3/q3map2/autopk3.c @@ -339,6 +339,10 @@ int pk3BSPMain( int argc, char **argv ){ } } res2list( pk3Shaders, ValueForKey( &entities[i], "targetShaderNewName" ) ); + + if ( ENT_READKV( &str, &entities[i], "model2" ) ){ + Sys_Warning( "unhandled model2 key of %s: %s\n", ent_classname( &entities[i] ), str ); + } } //levelshot @@ -1009,6 +1013,10 @@ int repackBSPMain( int argc, char **argv ){ } } res2list( pk3Shaders, ValueForKey( &entities[i], "targetShaderNewName" ) ); + + if ( ENT_READKV( &str, &entities[i], "model2" ) ){ + Sys_Warning( "unhandled model2 key of %s: %s\n", ent_classname( &entities[i] ), str ); + } } //levelshot