]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
use "minimaps" directory for warsow
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Mon, 27 Apr 2009 16:36:51 +0000 (16:36 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Mon, 27 Apr 2009 16:36:51 +0000 (16:36 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@346 61c419a2-8eb2-4b30-bcec-8cead039b335

tools/quake3/q3map2/game_qfusion.h
tools/quake3/q3map2/main.c

index 7ce65bfae9c8f368c6c3c5dec9d0e2adcf2af422..cf4a99c00cd07d0ce6de6819e66bb6575dc73325 100644 (file)
@@ -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 */
index 45d5ca51423adbde5d2c3e022cf8192d189e7be4..7e9f3b20d8fdc1ddad3ebdeb373c3faeb20cb101 100644 (file)
@@ -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" );