X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=radiant%2Fmap.cpp;h=a5ac53f899e63e2a27e863482a12091851efd4ce;hp=36b77ae1b828478767148f91738b156287139b5f;hb=f100a82117cc13e8a646e39349865cd35d54b891;hpb=072f962b4fcfaf45fb2e03af57fb5ca4082e4c7e diff --git a/radiant/map.cpp b/radiant/map.cpp index 36b77ae1..a5ac53f8 100644 --- a/radiant/map.cpp +++ b/radiant/map.cpp @@ -966,6 +966,8 @@ void Map_LoadFile( const char *filename ){ MRU_AddFile( filename ); g_strLastMapFolder = g_path_get_dirname( filename ); + bool switch_format = false; + { ScopeTimer timer( "map load" ); @@ -992,6 +994,7 @@ void Map_LoadFile( const char *filename ){ if ( !format->wrongFormat ) { break; } + switch_format = !switch_format; } } @@ -1012,6 +1015,8 @@ void Map_LoadFile( const char *filename ){ Map_StartPosition(); g_currentMap = &g_map; + + Brush_switchFormat( switch_format ); } class Excluder