This commit is contained in:
Charles 2001-06-12 13:59:32 +00:00
parent 53f0008276
commit eab51b30c1

View File

@ -2073,6 +2073,19 @@ void CPlayer::takeDamage(DAMAGE_TYPE _damage,REACT_DIRECTION _reactDirection,CTh
} }
else else
{ {
CThing *platform;
platform=isOnPlatform();
if(platform)
{
if ( ( (CNpcPlatform *) platform )->isCart() )
{
m_invincibleFrameCount=INVINCIBLE_FRAMES__HIT;
m_healthReactFrames=25;
return;
}
}
if(_reactDirection!=REACT__NO_REACTION) if(_reactDirection!=REACT__NO_REACTION)
{ {
if(_reactDirection==REACT__GET_DIRECTION_FROM_THING) if(_reactDirection==REACT__GET_DIRECTION_FROM_THING)