#endif
bool autocvar_g_mapinfo_arena_compat = true;
+bool autocvar_g_mapinfo_arena_generate = false;
#ifdef MENUQC
#define WARN_COND false
mapMins = '0 0 0';
mapMaxs = '0 0 0';
- // try for a .arena or .defi file if no .mapinfo exists
- bool isdefi = false;
- string arena_fn = _MapInfo_FindArenaFile(pFilename, ".arena");
- int arena_fh = fopen(arena_fn, FILE_READ);
- if(arena_fh < 0)
+ if(autocvar_g_mapinfo_arena_generate)
{
- isdefi = true;
- arena_fn = _MapInfo_FindArenaFile(pFilename, ".defi");
- arena_fh = fopen(arena_fn, FILE_READ);
- }
- if(arena_fh >= 0)
- {
- _MapInfo_ParseArena(arena_fn, arena_fh, pFilename, NULL, isdefi, true);
- fclose(arena_fh);
+ // try for .arena or .defi files, as they may have more accurate information
+ bool isdefi = false;
+ string arena_fn = _MapInfo_FindArenaFile(pFilename, ".arena");
+ int arena_fh = fopen(arena_fn, FILE_READ);
+ if(arena_fh < 0)
+ {
+ isdefi = true;
+ arena_fn = _MapInfo_FindArenaFile(pFilename, ".defi");
+ arena_fh = fopen(arena_fn, FILE_READ);
+ }
+ if(arena_fh >= 0)
+ {
+ _MapInfo_ParseArena(arena_fn, arena_fh, pFilename, NULL, isdefi, true);
+ fclose(arena_fh);
+ }
}
for (;;)
// disabling until it's complete
set prvm_garbagecollection_enable 0
-set g_mapinfo_arena_compat 1 "allow mapinfo data to be pulled directly from .arena and .defi files if they exist, rather than generating .mapinfo files based on their contents"
+set g_mapinfo_arena_compat 1 "allow mapinfo data to be pulled directly from .arena and .defi files if they exist, rather than generating .mapinfo files for them"
+set g_mapinfo_arena_generate 0 "allow mapinfo data to be pulled from .arena and .defi files during generation"
// load console command aliases and settings
exec commands.cfg