This commit is contained in:
parent
0b3c1a069c
commit
55119a981e
1 changed files with 47 additions and 47 deletions
|
@ -940,8 +940,6 @@ void CNpcPlatform::collidedWith( CThing *_thisThing )
|
|||
switch(_thisThing->getThingType())
|
||||
{
|
||||
case TYPE_PLAYER:
|
||||
{
|
||||
if ( m_detectCollision && m_isActive )
|
||||
{
|
||||
CPlayer *player;
|
||||
DVECTOR playerPos;
|
||||
|
@ -982,7 +980,6 @@ void CNpcPlatform::collidedWith( CThing *_thisThing )
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -1036,6 +1033,8 @@ int CNpcPlatform::checkCollisionAgainst(CThing *_thisThing, int _frames)
|
|||
{
|
||||
int collided = false;
|
||||
|
||||
if ( m_detectCollision && m_isActive && !isSetToShutdown() )
|
||||
{
|
||||
CRECT thisRect, thatRect;
|
||||
|
||||
thisRect = getCollisionArea();
|
||||
|
@ -1056,6 +1055,7 @@ int CNpcPlatform::checkCollisionAgainst(CThing *_thisThing, int _frames)
|
|||
{
|
||||
collided = true;
|
||||
}
|
||||
}
|
||||
|
||||
return( collided );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue