summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-23 23:45:28 +0100
committermadmaxoft <github@xoft.cz>2014-01-23 23:45:28 +0100
commite251e526739b72554b99260e047727d1e85aadf9 (patch)
tree4f79e360bf4cc971945bec6dede360f0ec888805
parentPolarSSL is fully used for 1.3.2 protocol encryption. (diff)
downloadcuberite-e251e526739b72554b99260e047727d1e85aadf9.tar
cuberite-e251e526739b72554b99260e047727d1e85aadf9.tar.gz
cuberite-e251e526739b72554b99260e047727d1e85aadf9.tar.bz2
cuberite-e251e526739b72554b99260e047727d1e85aadf9.tar.lz
cuberite-e251e526739b72554b99260e047727d1e85aadf9.tar.xz
cuberite-e251e526739b72554b99260e047727d1e85aadf9.tar.zst
cuberite-e251e526739b72554b99260e047727d1e85aadf9.zip
-rw-r--r--src/WorldStorage/ScoreboardSerializer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WorldStorage/ScoreboardSerializer.cpp b/src/WorldStorage/ScoreboardSerializer.cpp
index dabc5e2e1..0788aff17 100644
--- a/src/WorldStorage/ScoreboardSerializer.cpp
+++ b/src/WorldStorage/ScoreboardSerializer.cpp
@@ -321,13 +321,13 @@ bool cScoreboardSerializer::LoadScoreboardFromNBT(const cParsedNBT & a_NBT)
CurrLine = a_NBT.FindChildByName(Child, "AllowFriendlyFire");
if (CurrLine >= 0)
{
- AllowsFriendlyFire = a_NBT.GetInt(CurrLine);
+ AllowsFriendlyFire = (a_NBT.GetInt(CurrLine) != 0);
}
CurrLine = a_NBT.FindChildByName(Child, "SeeFriendlyInvisibles");
if (CurrLine >= 0)
{
- CanSeeFriendlyInvisible = a_NBT.GetInt(CurrLine);
+ CanSeeFriendlyInvisible = (a_NBT.GetInt(CurrLine) != 0);
}
cTeam * Team = m_ScoreBoard->RegisterTeam(Name, DisplayName, Prefix, Suffix);