| 109 | }; |
| 110 | |
| 111 | void CCharacterPhysicsSupport::SetRemoved() |
| 112 | { |
| 113 | m_eState = esRemoved; |
| 114 | if (m_flags.test(fl_skeleton_in_shell)) // b_skeleton_in_shell |
| 115 | { |
| 116 | if (m_pPhysicsShell->isEnabled()) |
| 117 | { |
| 118 | m_EntityAlife.processing_deactivate(); |
| 119 | } |
| 120 | m_pPhysicsShell->Deactivate(); |
| 121 | xr_delete(m_pPhysicsShell); |
| 122 | } |
| 123 | else |
| 124 | { |
| 125 | if (m_physics_skeleton) |
| 126 | m_physics_skeleton->Deactivate(); |
| 127 | xr_delete(m_physics_skeleton); |
| 128 | m_EntityAlife.processing_deactivate(); |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | void CCharacterPhysicsSupport::in_Load(LPCSTR section) |
| 133 | { |
no test coverage detected