Commit b0f45cb9 authored by Gerhard Stein's avatar Gerhard Stein

Flag holder in Keen 6 which are hands now close

parent ff938af4
......@@ -114,7 +114,25 @@ void CFlag::processFlipping()
else
{
setAction(A_FLAG_WAVE);
setActionSprite();
g_pSound->playSound( SOUND_FLAG_LAND );
const auto episode = g_pBehaviorEngine->getEpisode();
if(episode == 6)
{
VectorD2<int> tilePos = m_Pos;
CSprite &rSprite = g_pGfxEngine->getSprite(sprite);
//tilePos.y += ((rSprite.getHeight())<<STC);
tilePos.y = getYDownPos();
std::vector<CTileProperties> &Tile = g_pBehaviorEngine->getTileProperties(1);
Uint32 new_tile_no = mp_Map->getPlaneDataAt(1, tilePos)+1;
tilePos = tilePos>>CSF;
mp_Map->setTile(tilePos.x, tilePos.y, new_tile_no, true);
}
}
}
......
......@@ -848,6 +848,13 @@ void CPlayerWM::finishLevel(const int object)
{
g_pSound->playSound( SOUND_FLAG_APPEAR );
}
if(episode == 6)
{
csfX += (1<<STC);
csfY += (2<<STC);
}
VectorD2<Uint32> dst(csfX, csfY);
......
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