| 2093 | |
| 2094 | |
| 2095 | void cClientHandle::SendExplosion(double a_BlockX, double a_BlockY, double a_BlockZ, float a_Radius, const cVector3iArray & a_BlocksAffected, const Vector3d & a_PlayerMotion) |
| 2096 | { |
| 2097 | if (m_NumExplosionsThisTick > MAX_EXPLOSIONS_PER_TICK) |
| 2098 | { |
| 2099 | LOGD("Dropped an explosion!"); |
| 2100 | return; |
| 2101 | } |
| 2102 | |
| 2103 | // Update the statistics: |
| 2104 | m_NumExplosionsThisTick += 1; |
| 2105 | |
| 2106 | m_Protocol->SendExplosion(a_BlockX, a_BlockY, a_BlockZ, a_Radius, a_BlocksAffected, a_PlayerMotion); |
| 2107 | } |
| 2108 | |
| 2109 | |
| 2110 | |