| 56 | |
| 57 | |
| 58 | void cFlowerPotEntity::Destroy(void) |
| 59 | { |
| 60 | // Drop the contents as pickups: |
| 61 | if (!m_Item.IsEmpty()) |
| 62 | { |
| 63 | ASSERT(m_World != NULL); |
| 64 | cItems Pickups; |
| 65 | Pickups.Add(m_Item); |
| 66 | m_World->SpawnItemPickups(Pickups, m_PosX + 0.5, m_PosY + 0.5, m_PosZ + 0.5); |
| 67 | |
| 68 | m_Item.Empty(); |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | |
| 73 |
no test coverage detected