This commit is contained in:
parent
320876b044
commit
399c942ef1
1 changed files with 6 additions and 0 deletions
|
@ -497,6 +497,12 @@ void CPlayerProjectile::think(int _frames)
|
||||||
{
|
{
|
||||||
if ( m_layerCollision->Get( Pos.vx >> 4, Pos.vy >> 4 ) )
|
if ( m_layerCollision->Get( Pos.vx >> 4, Pos.vy >> 4 ) )
|
||||||
{
|
{
|
||||||
|
// destroy destructable tiles
|
||||||
|
|
||||||
|
CLevel &level = GameScene.GetLevel();
|
||||||
|
|
||||||
|
level.destroyMapArea( Pos );
|
||||||
|
|
||||||
setToShutdown();
|
setToShutdown();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue