From 37f408f64396ffd54e36a40d26f1c3c63aff2b35 Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 7 May 2009 11:12:53 +0000 Subject: [PATCH] consistently handle the aliases to _clone git-svn-id: svn://svn.icculus.org/netradiant/trunk@363 61c419a2-8eb2-4b30-bcec-8cead039b335 --- tools/quake3/q3map2/bsp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/quake3/q3map2/bsp.c b/tools/quake3/q3map2/bsp.c index a5550975..7db15674 100644 --- a/tools/quake3/q3map2/bsp.c +++ b/tools/quake3/q3map2/bsp.c @@ -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; -- 2.39.2