1
0

Merge pull request #159 from tigerw/bugfix

Multiple fixes and features
This commit is contained in:
Mattes D
2013-09-11 12:19:39 -07:00
5 changed files with 107 additions and 5 deletions

View File

@@ -610,10 +610,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 (IsGameModeCreative())
{
// No damage / health in creative mode
return;
}
}
super::DoTakeDamage(a_TDI);