| 196 | |
| 197 | |
| 198 | void cEntity::Destroy(bool a_ShouldBroadcast) |
| 199 | { |
| 200 | if (!m_IsInitialized) |
| 201 | { |
| 202 | return; |
| 203 | } |
| 204 | |
| 205 | if (a_ShouldBroadcast) |
| 206 | { |
| 207 | m_World->BroadcastDestroyEntity(*this); |
| 208 | } |
| 209 | |
| 210 | m_IsInitialized = false; |
| 211 | |
| 212 | Destroyed(); |
| 213 | } |
| 214 | |
| 215 | |
| 216 |
no test coverage detected