summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-04-23 09:12:37 +0200
committerarchshift <admin@archshift.com>2014-04-23 09:12:37 +0200
commit876866942807f823d5d7553538f562a6b081093b (patch)
treebd6977353876ebe72c785f6c59d00e1839cd5f17
parentDeclaration that a mob is not fireproof is implicit. (diff)
downloadcuberite-876866942807f823d5d7553538f562a6b081093b.tar
cuberite-876866942807f823d5d7553538f562a6b081093b.tar.gz
cuberite-876866942807f823d5d7553538f562a6b081093b.tar.bz2
cuberite-876866942807f823d5d7553538f562a6b081093b.tar.lz
cuberite-876866942807f823d5d7553538f562a6b081093b.tar.xz
cuberite-876866942807f823d5d7553538f562a6b081093b.tar.zst
cuberite-876866942807f823d5d7553538f562a6b081093b.zip
-rw-r--r--src/Entities/Entity.cpp2
-rw-r--r--src/Entities/Entity.h4
-rw-r--r--src/MonsterConfig.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp
index 82900ff91..6da6da54e 100644
--- a/src/Entities/Entity.cpp
+++ b/src/Entities/Entity.cpp
@@ -1044,7 +1044,7 @@ void cEntity::SetMaxHealth(int a_MaxHealth)
/// Sets whether the entity is fireproof
-void cEntity::SetFireproofStatus(bool a_IsFireproof)
+void cEntity::SetIsFireproof(bool a_IsFireproof)
{
m_IsFireproof = a_IsFireproof;
}
diff --git a/src/Entities/Entity.h b/src/Entities/Entity.h
index 4267ed0f6..86efc5a98 100644
--- a/src/Entities/Entity.h
+++ b/src/Entities/Entity.h
@@ -330,9 +330,9 @@ public:
int GetMaxHealth(void) const { return m_MaxHealth; }
/// Sets whether the entity is fireproof
- void SetFireproofStatus(bool a_IsFireproof);
+ void SetIsFireproof(bool a_IsFireproof);
- bool GetFireproofStatus(void) const { return m_IsFireproof; }
+ bool IsFireproof(void) const { return m_IsFireproof; }
/// Puts the entity on fire for the specified amount of ticks
void StartBurning(int a_TicksLeftBurning);
diff --git a/src/MonsterConfig.cpp b/src/MonsterConfig.cpp
index 4b0e4bce1..72a3a3245 100644
--- a/src/MonsterConfig.cpp
+++ b/src/MonsterConfig.cpp
@@ -94,7 +94,7 @@ void cMonsterConfig::AssignAttributes(cMonster * a_Monster, const AString & a_Na
a_Monster->SetSightDistance(itr->m_SightDistance);
a_Monster->SetAttackRate ((float)itr->m_AttackRate);
a_Monster->SetMaxHealth (itr->m_MaxHealth);
- a_Monster->SetFireproofStatus(itr->m_IsFireproof);
+ a_Monster->SetIsFireproof (itr->m_IsFireproof);
return;
}
} // for itr - m_pState->AttributesList[]