summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-09-11 19:50:14 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-09-11 19:56:03 +0200
commite9321bc715b5298553b114666ccc3418591fbfdc (patch)
tree463c0da24b3078276266462c24ff7ff8a2392cfe /source
parentmoved reflection code to PlayerYawToMetadata (diff)
downloadcuberite-e9321bc715b5298553b114666ccc3418591fbfdc.tar
cuberite-e9321bc715b5298553b114666ccc3418591fbfdc.tar.gz
cuberite-e9321bc715b5298553b114666ccc3418591fbfdc.tar.bz2
cuberite-e9321bc715b5298553b114666ccc3418591fbfdc.tar.lz
cuberite-e9321bc715b5298553b114666ccc3418591fbfdc.tar.xz
cuberite-e9321bc715b5298553b114666ccc3418591fbfdc.tar.zst
cuberite-e9321bc715b5298553b114666ccc3418591fbfdc.zip
Diffstat (limited to 'source')
-rw-r--r--source/Entities/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Entities/Player.cpp b/source/Entities/Player.cpp
index 1f4f392ef..bf96a6eaa 100644
--- a/source/Entities/Player.cpp
+++ b/source/Entities/Player.cpp
@@ -613,7 +613,7 @@ void cPlayer::DoTakeDamage(TakeDamageInfo & a_TDI)
{
if (a_TDI.DamageType != dtInVoid)
{
- if (m_GameMode == eGameMode_Creative)
+ if (IsGameModeCreative())
{
// No damage / health in creative mode
return;