]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
consistently handle the aliases to _clone
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Thu, 7 May 2009 11:12:53 +0000 (11:12 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Thu, 7 May 2009 11:12:53 +0000 (11:12 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@363 61c419a2-8eb2-4b30-bcec-8cead039b335

tools/quake3/q3map2/bsp.c

index a5550975a2034036d30c57fb05e4597606321444..7db1567435782941f4e799d797dd1ecb32bd22bb 100644 (file)
@@ -137,7 +137,11 @@ static void SetCloneModelNumbers( void )
                        continue;
                
                /* is this a clone? */
-               value = ValueForKey( &entities[ i ], "_clone" );
+               value = ValueForKey( &entities[ i ], "_ins" );
+               if( value[ 0 ] == '\0' )
+                       value = ValueForKey( &entities[ i ], "_instance" );
+               if( value[ 0 ] == '\0' )
+                       value = ValueForKey( &entities[ i ], "_clone" );
                if( value[ 0 ] != '\0' )
                        continue;