From cc086375071b30edb6bbbc7ed552c906cd5f9e73 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 23 Feb 2011 10:56:42 +0100 Subject: [PATCH] also support _ins or _instance key as alias for _clone --- 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 aeaf7363..3a16b0c2 100644 --- a/tools/quake3/q3map2/bsp.c +++ b/tools/quake3/q3map2/bsp.c @@ -138,7 +138,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