engine: now, remove SUPPORT_BSP2_FORMAT macro, only prevent ref_soft from loading such maps

This commit is contained in:
Alibek Omarov
2025-01-08 07:59:01 +03:00
parent 8a41be9d47
commit e70ba7ad64
6 changed files with 7 additions and 42 deletions

View File

@@ -1393,6 +1393,12 @@ void GAME_EXPORT R_NewMap( void )
R_ClearDecals(); // clear all level decals
R_StudioResetPlayerModels();
if( FBitSet( world->flags, MODEL_QBSP2 ))
{
gEngfuncs.Host_Error( "Sorry, ref_soft can't load maps in BSP2 format.\n" );
return;
}
r_cnumsurfs = sw_maxsurfs.value;
if( r_cnumsurfs <= MINSURFACES )