From: divverent Date: Mon, 27 Apr 2009 16:36:51 +0000 (+0000) Subject: use "minimaps" directory for warsow X-Git-Tag: svn-r421~74 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3963252e6d5a6a7463d572002cf7df9454ab00c5;p=xonotic%2Fnetradiant.git use "minimaps" directory for warsow git-svn-id: svn://svn.icculus.org/netradiant/trunk@346 61c419a2-8eb2-4b30-bcec-8cead039b335 --- diff --git a/tools/quake3/q3map2/game_qfusion.h b/tools/quake3/q3map2/game_qfusion.h index 7ce65bfa..cf4a99c0 100644 --- a/tools/quake3/q3map2/game_qfusion.h +++ b/tools/quake3/q3map2/game_qfusion.h @@ -129,7 +129,7 @@ game_t struct 0.0f, /* minimap sharpener */ 0.0f, /* minimap border */ qfalse, /* minimap keep aspect */ - "%s.tga", /* minimap name format */ + "../minimaps/%s.tga", /* minimap name format */ "FBSP", /* bsp file prefix */ 1, /* bsp file version */ qfalse, /* cod-style lump len/ofs order */ diff --git a/tools/quake3/q3map2/main.c b/tools/quake3/q3map2/main.c index 45d5ca51..7e9f3b20 100644 --- a/tools/quake3/q3map2/main.c +++ b/tools/quake3/q3map2/main.c @@ -707,6 +707,8 @@ int MiniMapBSPMain( int argc, char **argv ) } Sys_Printf( " writing to %s...", minimapFilename ); + ExtractFilePath(minimapFilename, path); + Q_mkdir(path); WriteTGA24(minimapFilename, data3b, minimap.width, minimap.height, qfalse); Sys_Printf( " done.\n" );