| 138 | void CPHSkeleton::Load(LPCSTR section) { existence_time = pSettings->r_u32(section, "remove_time") * 1000; } |
| 139 | |
| 140 | void CPHSkeleton::Update(u32 dt) |
| 141 | { |
| 142 | CPhysicsShellHolder* obj = PPhysicsShellHolder(); |
| 143 | CPhysicsShell* pPhysicsShell = obj->PPhysicsShell(); |
| 144 | if (pPhysicsShell && pPhysicsShell->isFractured()) //! ai().get_alife() && |
| 145 | { |
| 146 | PHSplit(); |
| 147 | } |
| 148 | |
| 149 | if (b_removing && Device.dwTimeGlobal > m_remove_time && |
| 150 | //(Device.dwTimeGlobal-m_unsplit_time)*phTimefactor>remove_time&& |
| 151 | m_unsplited_shels.empty()) |
| 152 | { |
| 153 | if (obj->Local()) |
| 154 | obj->DestroyObject(); |
| 155 | b_removing = false; |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | // SaveNetState() вызывается при создании сейва из |
| 160 | // |
nothing calls this directly
no test coverage detected