+ if(autocvar_g_mapinfo_q3compat >= 2) // generate mapinfo using arena data
+ {
+ // try for .arena or .defi files, as they may have more accurate information
+ // supporting .arena AND .defi for the same map
+ bool success = false;
+ fh = -1;
+ fn = _MapInfo_FindArenaFile(pFilename, ".arena");
+ if(fn != "" && (fh = fopen(fn, FILE_READ)) >= 0)
+ {
+ success = _MapInfo_ParseArena(fn, fh, pFilename, NULL, false, true);
+ fclose(fh);
+ }
+ fn = _MapInfo_FindArenaFile(pFilename, ".defi");
+ if(fn != "" && (fh = fopen(fn, FILE_READ)) >= 0)
+ {
+ success |= _MapInfo_ParseArena(fn, fh, pFilename, NULL, true, true);
+ fclose(fh);
+ }
+ if (success && autocvar_g_mapinfo_q3compat == 3)
+ return 3; // skip entity analysis
+ }
+