From 96d1d7c2600642930019bd5a9553f92ec2d7d5a9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 1 Jul 2016 23:50:19 +0300 Subject: Fix code style. --- src/net/ea/beingrecv.cpp | 6 ++---- src/net/tmwa/charserverrecv.cpp | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src/net') diff --git a/src/net/ea/beingrecv.cpp b/src/net/ea/beingrecv.cpp index 39a0e26e1..9b12583a8 100644 --- a/src/net/ea/beingrecv.cpp +++ b/src/net/ea/beingrecv.cpp @@ -45,8 +45,6 @@ #include "net/messagein.h" #include "net/serverfeatures.h" -#include "utils/checkutils.h" - #include "debug.h" namespace Ea @@ -436,8 +434,8 @@ void BeingRecv::processBeingMove3(Net::MessageIn &msg) } const int16_t speed = msg.readInt16("speed"); dstBeing->setWalkSpeed(speed); - int16_t x = msg.readInt16("x"); - int16_t y = msg.readInt16("y"); + const int16_t x = msg.readInt16("x"); + const int16_t y = msg.readInt16("y"); dstBeing->setAction(BeingAction::STAND, 0); dstBeing->setTileCoords(x, y); diff --git a/src/net/tmwa/charserverrecv.cpp b/src/net/tmwa/charserverrecv.cpp index e54b092e0..9728303ff 100644 --- a/src/net/tmwa/charserverrecv.cpp +++ b/src/net/tmwa/charserverrecv.cpp @@ -210,7 +210,7 @@ void CharServerRecv::processCharMapInfo(Net::MessageIn &restrict msg) ServerInfo &server = mapServer; BLOCK_START("CharServerRecv::processCharMapInfo") PlayerInfo::setCharId(msg.readInt32("char id?")); - GameHandler *const gh = static_cast(gameHandler); + const GameHandler *const gh = static_cast(gameHandler); gh->setMap(msg.readString(16, "map name")); if (config.getBoolValue("usePersistentIP") || settings.persistentIp) { -- cgit v1.2.3-70-g09d2