| 1483 | } |
| 1484 | |
| 1485 | std::vector<StaticMesh*> FillCollideableStaticsList() |
| 1486 | { |
| 1487 | std::vector<StaticMesh*> staticList; |
| 1488 | auto& roomList = g_Level.Rooms[Camera.pos.RoomNumber].NeighborRoomNumbers; |
| 1489 | |
| 1490 | for (int i : roomList) |
| 1491 | { |
| 1492 | auto* room = &g_Level.Rooms[i]; |
| 1493 | |
| 1494 | if (!room->Active()) |
| 1495 | continue; |
| 1496 | |
| 1497 | for (short j = 0; j < room->mesh.size(); j++) |
| 1498 | { |
| 1499 | if (!CheckStaticCollideCamera(&room->mesh[j])) |
| 1500 | continue; |
| 1501 | |
| 1502 | staticList.push_back(&room->mesh[j]); |
| 1503 | } |
| 1504 | } |
| 1505 | |
| 1506 | return staticList; |
| 1507 | } |
| 1508 | |
| 1509 | void ItemsCollideCamera() |
| 1510 | { |
no test coverage detected