From 4c4e9867eba244f7e340b03729b103012fc5d906 Mon Sep 17 00:00:00 2001 From: "admin@omencraft.com" Date: Tue, 1 Nov 2011 20:26:11 +0000 Subject: forogt to update all of cPlayer.cpp for player based gamemode. git-svn-id: http://mc-server.googlecode.com/svn/trunk@39 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cPlayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/cPlayer.cpp b/source/cPlayer.cpp index da589a70f..fe3f5a7d6 100644 --- a/source/cPlayer.cpp +++ b/source/cPlayer.cpp @@ -322,7 +322,7 @@ void cPlayer::Heal( int a_Health ) void cPlayer::TakeDamage( int a_Damage, cEntity* a_Instigator ) { - if ( !(GetWorld()->GetGameMode() == 1) ) { + if ( !(m_GameMode == 1) ) { cPawn::TakeDamage( a_Damage, a_Instigator ); cPacket_UpdateHealth Health; -- cgit v1.2.3