From: Rudolf Polzer Date: Thu, 23 Dec 2010 08:39:59 +0000 (+0100) Subject: make it callable X-Git-Tag: xonotic-v0.5.0~99 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4e12b14cdf0a50c60f17dfc96910d2086a12a040;p=xonotic%2Fnetradiant.git make it callable --- diff --git a/tools/quake3/q3map2/main.c b/tools/quake3/q3map2/main.c index 2deb1429..aa3bcff2 100644 --- a/tools/quake3/q3map2/main.c +++ b/tools/quake3/q3map2/main.c @@ -1565,6 +1565,11 @@ int ConvertBSPMain( int argc, char **argv ) convertFunc = ConvertBSPToASE; map_allowed = qfalse; } + else if( !Q_stricmp( argv[ i ], "obj" ) ) + { + convertFunc = ConvertBSPToOBJ; + map_allowed = qfalse; + } else if( !Q_stricmp( argv[ i ], "map_bp" ) ) { convertFunc = ConvertBSPToMap_BP; diff --git a/tools/quake3/q3map2/q3map2.h b/tools/quake3/q3map2/q3map2.h index baa29c7c..4c421203 100644 --- a/tools/quake3/q3map2/q3map2.h +++ b/tools/quake3/q3map2/q3map2.h @@ -1530,6 +1530,9 @@ int ConvertBSPToMap_BP( char *bspName ); /* convert_ase.c */ int ConvertBSPToASE( char *bspName ); +/* convert_obj.c */ +int ConvertBSPToOBJ( char *bspName ); + /* brush.c */ sideRef_t *AllocSideRef( side_t *side, sideRef_t *next );