| 2022 | #if DO_STAT |
| 2023 | Shadow.Count(oi->shape->Name()); |
| 2024 | #endif |
| 2025 | } |
| 2026 | |
| 2027 | // different global variables |
| 2028 | |
| 2029 | void ManCleanUp(); |
| 2030 | |
| 2031 | void ClearShapes() |
| 2032 | { |
| 2033 | VehicleTypes.Clear(); |
| 2034 | // WeaponInfos.Clear(); |
| 2035 | RoadTypes.Clear(); |
| 2036 | // log any shape still resident in the cache at shutdown (refs would |
| 2037 | // be from cache itself plus any holdouts on the entity side). |
| 2038 | Shapes.ForEach([](LODShapeWithShadow& shape) |
| 2039 | { Log("Shape %s not released (%d refs).", shape.Name(), shape.RefCounter()); }); |
| 2040 | Shapes.Clear(); |
no test coverage detected