Commit c9508f80 authored by bobbyblues's avatar bobbyblues

Removed explosion sprite if the tank does not contain any explosive.

parent cedc548f
......@@ -165,7 +165,10 @@ void UIMap::gameHasBeenReset()
void UIMap::exploded()
{
m_pixmap_item_explosion.setVisible(true);
if (GameController::Instance().getRocketController()->getExplosionRadius() > 0.0)
{
m_pixmap_item_explosion.setVisible(true);
}
m_pixmap_item_explosion.setPos(m_rocket.pos() - QPointF(60, 100));
m_pixmap_item_explosion.setScale(5.0);
m_explosion_timer.start(1000);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment