Commit dcee1f36 authored by Gerhard Stein's avatar Gerhard Stein

Bug fixes with riding foot when multiple players

parent b5d65500
......@@ -236,9 +236,12 @@ void CPlayerWM::pumpEvent(const CEvent *evPtr)
else if( const EventPlayerRideFoot* ev = dynamic_cast<const EventPlayerRideFoot*>(evPtr) )
{
gEventManager.flush();
finishLevel(ev->levelObject);
solid = false;
if(ev->who == mSpecialIdx)
{
gEventManager.flush();
finishLevel(ev->levelObject);
solid = false;
}
// Here we need to set the coordinates calculated to where Keen has to go.
target = fetchFootDestCoord();
......
......@@ -25,8 +25,10 @@ struct EventPlayerEndLevel : CEvent {
struct EventPlayerRideFoot : CEvent {
const uint16_t levelObject;
const int who;
EventPlayerRideFoot(const EventExitLevelWithFoot &ev) :
levelObject(ev.levelObject) {}
levelObject(ev.levelObject),
who(ev.who) {}
};
......
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