============ idAASBuild::AddBrushesForMapFile ============ */
| 546 | ============ |
| 547 | */ |
| 548 | idBrushList idAASBuild::AddBrushesForMapFile( const idMapFile * mapFile, idBrushList brushList ) { |
| 549 | int i; |
| 550 | |
| 551 | common->Printf( "[Brush Load]\n" ); |
| 552 | |
| 553 | brushList = AddBrushesForMapEntity( mapFile->GetEntity( 0 ), 0, brushList ); |
| 554 | |
| 555 | for ( i = 1; i < mapFile->GetNumEntities(); i++ ) { |
| 556 | const char *classname = mapFile->GetEntity( i )->epairs.GetString( "classname" ); |
| 557 | |
| 558 | if ( idStr::Icmp( classname, "func_aas_obstacle" ) == 0 ) { |
| 559 | brushList = AddBrushesForMapEntity( mapFile->GetEntity( i ), i, brushList ); |
| 560 | } |
| 561 | } |
| 562 | |
| 563 | common->Printf( "%6d brushes\n", brushList.Num() ); |
| 564 | |
| 565 | return brushList; |
| 566 | } |
| 567 | |
| 568 | /* |
| 569 | ============ |
nothing calls this directly
no test coverage detected