MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / VehicleRelease

Method VehicleRelease

engine/Poseidon/World/Simulation/Simul.cpp:320–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320void 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
336void EntityType::VehicleLock() const
337{

Callers 8

~EntityMethod · 0.80
~ForestMethod · 0.80
NewObjectFunction · 0.80
NewShotFunction · 0.80
DeinitShapeMethod · 0.80
NewVehicleFunction · 0.80
NewNonAIVehicleQuietFunction · 0.80
~ObjectTypedMethod · 0.80

Calls 2

DeinitShapeMethod · 0.45
FreeMethod · 0.45

Tested by

no test coverage detected