aboutsummaryrefslogtreecommitdiff
path: root/src/content_cao.cpp
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2017-08-29 19:26:55 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-08-29 19:26:55 +0200
commitb7ee608e70f8e031e3e01c9672bedb16efa648b8 (patch)
treed4aa75bc30fa45cb3ec024e92aeff3e605cc8cc0 /src/content_cao.cpp
parent1b3e4e173624bb2523d4386aeef6987709d9b022 (diff)
downloaddragonfireclient-b7ee608e70f8e031e3e01c9672bedb16efa648b8.tar.xz
Bump minimal protocol version to 36 (#6319)
* Bump minimal protocol version to 36 Item/Node/TileDef, NodeBox, TileAnimation: Remove old compat code * Accept future serialisation versions
Diffstat (limited to 'src/content_cao.cpp')
-rw-r--r--src/content_cao.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp
index c34b47d51..b3b6fa5f2 100644
--- a/src/content_cao.cpp
+++ b/src/content_cao.cpp
@@ -300,8 +300,6 @@ void GenericCAO::initialize(const std::string &data)
m_is_visible = false;
player->setCAO(this);
}
- if (m_client->getProtoVersion() < 33)
- m_env->addPlayerName(m_name);
}
}
@@ -337,9 +335,6 @@ void GenericCAO::processInitData(const std::string &data)
GenericCAO::~GenericCAO()
{
- if (m_is_player && m_client->getProtoVersion() < 33) {
- m_env->removePlayerName(m_name);
- }
removeFromScene(true);
}