This commit is contained in:
parent
f12a92d250
commit
5747aa0a7e
1 changed files with 72 additions and 64 deletions
|
@ -522,7 +522,11 @@ DVECTOR const &CamPos=CLevel::getCameraPos();
|
|||
|
||||
if (player && playerThing)
|
||||
{
|
||||
int playerIsAlive=!player->isDead();
|
||||
|
||||
// Player -> Platform collision
|
||||
if(playerIsAlive)
|
||||
{
|
||||
player->clearPlatform();
|
||||
thing1=s_CollisionLists[CThing::TYPE_PLATFORM];
|
||||
while(thing1)
|
||||
|
@ -544,6 +548,7 @@ DVECTOR const &CamPos=CLevel::getCameraPos();
|
|||
}
|
||||
thing1=thing1->m_nextCollisionThing;
|
||||
}
|
||||
}
|
||||
|
||||
// Friend -> Pickup collision
|
||||
thing1=s_CollisionLists[CThing::TYPE_NPC];
|
||||
|
@ -562,6 +567,8 @@ DVECTOR const &CamPos=CLevel::getCameraPos();
|
|||
}
|
||||
|
||||
// Player -> Enemy collision
|
||||
if(playerIsAlive)
|
||||
{
|
||||
thing1=s_CollisionLists[CThing::TYPE_ENEMY];
|
||||
while(thing1)
|
||||
{
|
||||
|
@ -626,6 +633,7 @@ DVECTOR const &CamPos=CLevel::getCameraPos();
|
|||
}
|
||||
thing1=thing1->m_nextCollisionThing;
|
||||
}
|
||||
}
|
||||
|
||||
// Friend -> Trigger collision
|
||||
thing1=s_CollisionLists[CThing::TYPE_TRIGGER];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue