Commit fd43728a authored by Gerhard Stein's avatar Gerhard Stein

some small fixes to the engine

parent 51efec43
......@@ -68,7 +68,7 @@ void CPlayerLevel::process()
std::vector<CTileProperties> &TileProperty = g_pBehaviorEngine->getTileProperties();
TileProperty[mp_Map->at(getXMidPos()>>CSF, getYMidPos()>>CSF)].bdown;
if(!getActionNumber(A_KEEN_ENTER_DOOR))
if(!getActionNumber(A_KEEN_ENTER_DOOR) )
processMoving();
if(!m_cliff_hanging)
......@@ -340,12 +340,14 @@ void CPlayerLevel::processMoving()
processPressUp();
}
}
// Check if Keen hits the floor
if( blockedd && !m_cliff_hanging )
{
if(!getActionNumber(A_KEEN_POGO))
if(!getActionNumber(A_KEEN_POGO) )
{
if(moving != NONE)
setAction(A_KEEN_RUN);
......@@ -353,6 +355,7 @@ void CPlayerLevel::processMoving()
setAction(A_KEEN_STAND);
}
}
}
}
}
......
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