summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/charserverhandler.cpp4
-rw-r--r--src/net/ea/gamehandler.cpp3
2 files changed, 3 insertions, 4 deletions
diff --git a/src/net/ea/charserverhandler.cpp b/src/net/ea/charserverhandler.cpp
index 0f93efb8..b578fab9 100644
--- a/src/net/ea/charserverhandler.cpp
+++ b/src/net/ea/charserverhandler.cpp
@@ -257,7 +257,7 @@ void CharServerHandler::getCharacters()
connect();
}
-void CharServerHandler::chooseCharacter(int slot, LocalPlayer* character)
+void CharServerHandler::chooseCharacter(int slot, LocalPlayer *)
{
MessageOut outMsg(CMSG_CHAR_SELECT);
outMsg.writeInt8(slot);
@@ -277,7 +277,7 @@ void CharServerHandler::newCharacter(const std::string &name, int slot,
outMsg.writeInt16(hairstyle);
}
-void CharServerHandler::deleteCharacter(int slot, LocalPlayer* character)
+void CharServerHandler::deleteCharacter(int slot, LocalPlayer *character)
{
MessageOut outMsg(CMSG_CHAR_DELETE);
outMsg.writeInt32(character->getId());
diff --git a/src/net/ea/gamehandler.cpp b/src/net/ea/gamehandler.cpp
index a3c0ad3a..012e6f8c 100644
--- a/src/net/ea/gamehandler.cpp
+++ b/src/net/ea/gamehandler.cpp
@@ -59,12 +59,11 @@ GameHandler::GameHandler()
void GameHandler::handleMessage(MessageIn &msg)
{
- unsigned char direction;
-
switch (msg.getId())
{
case SMSG_MAP_LOGIN_SUCCESS:
{
+ unsigned char direction;
Uint16 x, y;
msg.readInt32(); // server tick
msg.readCoordinates(x, y, direction);