This commit is contained in:
Paul 2001-05-30 19:21:32 +00:00
parent 6e70572efe
commit 89ade2cdd4

View file

@ -801,8 +801,24 @@ if(newmode!=-1)
m_allowConversation=true; m_allowConversation=true;
} }
// Think for the current player mode
m_currentPlayerModeClass->think(); m_currentPlayerModeClass->think();
// Conveyor belt movement
if(getHeightFromGroundNoPlatform(Pos.vx,Pos.vy,5)==0)
{
int block;
block=CGameScene::getCollision()->getCollisionBlock(Pos.vx,Pos.vy)&COLLISION_TYPE_MASK;
if(block==COLLISION_TYPE_FLAG_MOVE_LEFT)
{
moveHorizontal(-1);
}
else if(block==COLLISION_TYPE_FLAG_MOVE_RIGHT)
{
moveHorizontal(+1);
}
}
// Powerups // Powerups
if(m_squeakyBootsTimer) if(m_squeakyBootsTimer)
{ {
@ -1120,6 +1136,7 @@ typedef struct
}POSMEM; }POSMEM;
static POSMEM lastpos[NUM_LASTPOS]; static POSMEM lastpos[NUM_LASTPOS];
static int lastposnum=0; static int lastposnum=0;
int drawlastpos=false;
#endif #endif
#ifdef __USER_paul__ #ifdef __USER_paul__
@ -1168,9 +1185,11 @@ if(Pos.vx!=lastpos[lastposnum].vx||Pos.vy!=lastpos[lastposnum].vy)
p->h=getHeightFromGround(Pos.vx,Pos.vy,150); p->h=getHeightFromGround(Pos.vx,Pos.vy,150);
} }
} }
POSMEM *p=lastpos; if(drawlastpos)
for(int i=0;i<NUM_LASTPOS;i++)
{ {
POSMEM *p=lastpos;
for(int i=0;i<NUM_LASTPOS;i++)
{
int x,y; int x,y;
x=p->vx-m_cameraPos.vx; x=p->vx-m_cameraPos.vx;
y=p->vy-m_cameraPos.vy; y=p->vy-m_cameraPos.vy;
@ -1187,6 +1206,7 @@ for(int i=0;i<NUM_LASTPOS;i++)
} }
p++; p++;
}
} }
#endif #endif