| 318 | } |
| 319 | |
| 320 | void EntityType::VehicleRelease() const |
| 321 | { |
| 322 | if (--_refVehicles == 0) |
| 323 | { |
| 324 | if (_refVehiclesLocked) |
| 325 | { |
| 326 | Fail("Locked vehicle released"); |
| 327 | } |
| 328 | const_cast<EntityType*>(this)->DeinitShape(); |
| 329 | if (_shape) |
| 330 | { |
| 331 | _shape.Free(); |
| 332 | } |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | void EntityType::VehicleLock() const |
| 337 | { |
no test coverage detected