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,11 +611,14 @@ void cPlayer::SetSprint(bool a_IsSprinting)
void cPlayer::DoTakeDamage(TakeDamageInfo & a_TDI) void cPlayer::DoTakeDamage(TakeDamageInfo & a_TDI)
{ {
if (a_TDI.DamageType != dtInVoid)
{
if (m_GameMode == eGameMode_Creative) if (m_GameMode == eGameMode_Creative)
{ {
// No damage / health in creative mode // No damage / health in creative mode
return; return;
} }
}
super::DoTakeDamage(a_TDI); super::DoTakeDamage(a_TDI);