| 569 | } |
| 570 | |
| 571 | CameraBuilding::CameraBuilding(VehicleType* name, int id, LODShapeWithShadow* shape) : base(name, nullptr) |
| 572 | { |
| 573 | SetSimulationPrecision(0.5); |
| 574 | if (shape) |
| 575 | { |
| 576 | _shape = shape; |
| 577 | } |
| 578 | PoseidonAssert(_shape); |
| 579 | _destrType = GetType()->GetDestructType(); |
| 580 | if ((DestructType)_destrType == DestructDefault) |
| 581 | { |
| 582 | _destrType = DestructBuilding; |
| 583 | } |
| 584 | _static = true; |
| 585 | SetType(Primary); |
| 586 | SetID(id); |
| 587 | } |
| 588 | |
| 589 | DEFINE_CASTING(Building) |
| 590 |
nothing calls this directly
no test coverage detected