This commit is contained in:
parent
e33b677261
commit
5e4ce42a4a
@ -1858,7 +1858,8 @@ int CPlayer::canDoLookAround()
|
|||||||
void CPlayer::inSoakUpState()
|
void CPlayer::inSoakUpState()
|
||||||
{
|
{
|
||||||
if(isWearingDivingHelmet()&&
|
if(isWearingDivingHelmet()&&
|
||||||
(CGameScene::getCollision()->getCollisionBlock(Pos.vx,Pos.vy)&COLLISION_TYPE_MASK)==COLLISION_TYPE_FLAG_DEATH_LIQUID)
|
// (CGameScene::getCollision()->getCollisionBlock(Pos.vx,Pos.vy)&COLLISION_TYPE_MASK)==COLLISION_TYPE_FLAG_DEATH_LIQUID)
|
||||||
|
(CGameScene::getCollision()->getCollisionBlock(Pos.vx,Pos.vy)&COLLISION_TYPE_MASK)==COLLISION_TYPE_FLAG_SOAKUP)
|
||||||
{
|
{
|
||||||
m_healthWaterLevel+=waterSoakUpSpeed;
|
m_healthWaterLevel+=waterSoakUpSpeed;
|
||||||
if(m_healthWaterLevel>WATERMAXHEALTH)
|
if(m_healthWaterLevel>WATERMAXHEALTH)
|
||||||
|
Loading…
Reference in New Issue
Block a user