Core/Misc: Fix typo in UNDERWARER_INDARKWATER
This commit is contained in:
1 parent
307cc1e36f
commit
be80e08ac6
2 files changed
+8
-8
No files matched your search
@@ -1076,7 +1076,7 @@ void Player::HandleDrowning(uint32 time_diff)
|
||||
}
|
||||
|
||||
// In dark water
|
||||
if (m_MirrorTimerFlags & UNDERWARER_INDARKWATER)
|
||||
if (m_MirrorTimerFlags & UNDERWATER_INDARKWATER)
|
||||
{
|
||||
// Fatigue timer not activated - activate it
|
||||
if (m_MirrorTimer[FATIGUE_TIMER] == DISABLED_MIRROR_TIMER)
|
||||
@@ -1099,7 +1099,7 @@ void Player::HandleDrowning(uint32 time_diff)
|
||||
else if (HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_GHOST)) // Teleport ghost to graveyard
|
||||
RepopAtGraveyard();
|
||||
}
|
||||
else if (!(m_MirrorTimerFlagsLast & UNDERWARER_INDARKWATER))
|
||||
else if (!(m_MirrorTimerFlagsLast & UNDERWATER_INDARKWATER))
|
||||
SendMirrorTimer(FATIGUE_TIMER, getMaxTimer(FATIGUE_TIMER), m_MirrorTimer[FATIGUE_TIMER], -1);
|
||||
}
|
||||
}
|
||||
@@ -1109,7 +1109,7 @@ void Player::HandleDrowning(uint32 time_diff)
|
||||
m_MirrorTimer[FATIGUE_TIMER]+=10*time_diff;
|
||||
if (m_MirrorTimer[FATIGUE_TIMER] >= DarkWaterTime || !IsAlive())
|
||||
StopMirrorTimer(FATIGUE_TIMER);
|
||||
else if (m_MirrorTimerFlagsLast & UNDERWARER_INDARKWATER)
|
||||
else if (m_MirrorTimerFlagsLast & UNDERWATER_INDARKWATER)
|
||||
SendMirrorTimer(FATIGUE_TIMER, DarkWaterTime, m_MirrorTimer[FATIGUE_TIMER], 10);
|
||||
}
|
||||
|
||||
@@ -24688,9 +24688,9 @@ void Player::ProcessTerrainStatusUpdate(ZLiquidStatus status, Optional<LiquidDat
|
||||
|
||||
// Fatigue bar state (if not on flight path or transport)
|
||||
if ((liquidData->type_flags & MAP_LIQUID_TYPE_DARK_WATER) && !IsInFlight() && !GetTransport())
|
||||
m_MirrorTimerFlags |= UNDERWARER_INDARKWATER;
|
||||
m_MirrorTimerFlags |= UNDERWATER_INDARKWATER;
|
||||
else
|
||||
m_MirrorTimerFlags &= ~UNDERWARER_INDARKWATER;
|
||||
m_MirrorTimerFlags &= ~UNDERWATER_INDARKWATER;
|
||||
|
||||
// Lava state (any contact)
|
||||
if (liquidData->type_flags & MAP_LIQUID_TYPE_MAGMA)
|
||||
@@ -24700,7 +24700,7 @@ void Player::ProcessTerrainStatusUpdate(ZLiquidStatus status, Optional<LiquidDat
|
||||
else
|
||||
m_MirrorTimerFlags &= ~UNDERWATER_INLAVA;
|
||||
}
|
||||
|
||||
|
||||
// Slime state (any contact)
|
||||
if (liquidData->type_flags & MAP_LIQUID_TYPE_SLIME)
|
||||
{
|
||||
@@ -24711,7 +24711,7 @@ void Player::ProcessTerrainStatusUpdate(ZLiquidStatus status, Optional<LiquidDat
|
||||
}
|
||||
}
|
||||
else
|
||||
m_MirrorTimerFlags &= ~(UNDERWATER_INWATER | UNDERWATER_INLAVA | UNDERWATER_INSLIME | UNDERWARER_INDARKWATER);
|
||||
m_MirrorTimerFlags &= ~(UNDERWATER_INWATER | UNDERWATER_INLAVA | UNDERWATER_INSLIME | UNDERWATER_INDARKWATER);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ enum PlayerUnderwaterState
|
||||
UNDERWATER_INWATER = 0x01, // terrain type is water and player is afflicted by it
|
||||
UNDERWATER_INLAVA = 0x02, // terrain type is lava and player is afflicted by it
|
||||
UNDERWATER_INSLIME = 0x04, // terrain type is lava and player is afflicted by it
|
||||
UNDERWARER_INDARKWATER = 0x08, // terrain type is dark water and player is afflicted by it
|
||||
UNDERWATER_INDARKWATER = 0x08, // terrain type is dark water and player is afflicted by it
|
||||
|
||||
UNDERWATER_EXIST_TIMERS = 0x10
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user