summaryrefslogtreecommitdiff
path: root/src/net/tmwa/beingrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-05 20:10:26 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-05 20:10:26 +0300
commit692331fcf7c07ce75a9053ef3fcc2a7597c0d007 (patch)
treef5cf34c771fe43e38c69aa11a97fd7f1a203f739 /src/net/tmwa/beingrecv.cpp
parent45c13626f8c59f6d48d411545cb17aee117ef076 (diff)
downloadmv-692331fcf7c07ce75a9053ef3fcc2a7597c0d007.tar.gz
mv-692331fcf7c07ce75a9053ef3fcc2a7597c0d007.tar.bz2
mv-692331fcf7c07ce75a9053ef3fcc2a7597c0d007.tar.xz
mv-692331fcf7c07ce75a9053ef3fcc2a7597c0d007.zip
Remove outdated serverVersion checks from tmwa net code.
Diffstat (limited to 'src/net/tmwa/beingrecv.cpp')
-rw-r--r--src/net/tmwa/beingrecv.cpp17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/net/tmwa/beingrecv.cpp b/src/net/tmwa/beingrecv.cpp
index 1d8f16871..bbae0a1bd 100644
--- a/src/net/tmwa/beingrecv.cpp
+++ b/src/net/tmwa/beingrecv.cpp
@@ -55,8 +55,6 @@
#include "debug.h"
-extern int serverVersion;
-
namespace TmwAthena
{
@@ -261,8 +259,7 @@ void BeingRecv::processPlayerUpdate1(Net::MessageIn &msg)
else if (disguiseId)
{
actorManager->undelete(dstBeing);
- if (serverVersion < 1)
- beingHandler->requestNameById(id);
+ beingHandler->requestNameById(id);
}
uint8_t dir = dstBeing->getDirectionDelayed();
@@ -397,8 +394,7 @@ void BeingRecv::processPlayerUpdate2(Net::MessageIn &msg)
else if (disguiseId)
{
actorManager->undelete(dstBeing);
- if (serverVersion < 1)
- beingHandler->requestNameById(id);
+ beingHandler->requestNameById(id);
}
uint8_t dir = dstBeing->getDirectionDelayed();
@@ -529,8 +525,7 @@ void BeingRecv::processPlayerMove(Net::MessageIn &msg)
else if (disguiseId)
{
actorManager->undelete(dstBeing);
- if (serverVersion < 1)
- beingHandler->requestNameById(id);
+ beingHandler->requestNameById(id);
}
const uint8_t dir = dstBeing->getDirectionDelayed();
@@ -716,8 +711,7 @@ void BeingRecv::processBeingVisible(Net::MessageIn &msg)
if (dstBeing->getType() == ActorType::Npc)
{
actorManager->undelete(dstBeing);
- if (serverVersion < 1)
- beingHandler->requestNameById(id);
+ beingHandler->requestNameById(id);
}
}
@@ -925,8 +919,7 @@ void BeingRecv::processBeingMove(Net::MessageIn &msg)
if (dstBeing->getType() == ActorType::Npc)
{
actorManager->undelete(dstBeing);
- if (serverVersion < 1)
- beingHandler->requestNameById(id);
+ beingHandler->requestNameById(id);
}
}