1
0

Added player void damage

This commit is contained in:
Tiger Wang 2013-09-10 23:02:35 +01:00
parent c8f8597774
commit cb167f78e3

View File

@ -611,10 +611,13 @@ void cPlayer::SetSprint(bool a_IsSprinting)
void cPlayer::DoTakeDamage(TakeDamageInfo & a_TDI)
{
if (m_GameMode == eGameMode_Creative)
if (a_TDI.DamageType != dtInVoid)
{
// No damage / health in creative mode
return;
if (m_GameMode == eGameMode_Creative)
{
// No damage / health in creative mode
return;
}
}
super::DoTakeDamage(a_TDI);