From 7be86388db006a55dcc4041f1a6b4179a1f11d03 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Wed, 16 Nov 2016 01:16:02 +0200 Subject: [PATCH] Fix build for server --- apps/openmw-mp/Networking.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index b8cd4c9f1..4f0d8105a 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -69,12 +69,12 @@ void Networking::ProcessPlayerPacket(RakNet::Packet *packet) return; } - if (*player->GetPassw() != passw) + if (*player->getPassw() != passw) { LOG_MESSAGE_SIMPLE(Log::LOG_WARN, "Wrong server password for player %d, name: %s (pass: %s)", player->GetID(), player->Npc()->mName.c_str(), - player->GetPassw()->c_str()); + player->getPassw()->c_str()); KickPlayer(player->guid); return; } @@ -239,26 +239,26 @@ void Networking::ProcessPlayerPacket(RakNet::Packet *packet) { myPacket->Read(player); - Player *target = Players::GetPlayer(player->GetAttack()->target); + Player *target = Players::GetPlayer(player->getAttack()->target); if (target == nullptr) target = player; LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Player: %s attacked %s state: %d", player->Npc()->mName.c_str(), - target->Npc()->mName.c_str(), player->GetAttack()->pressed == 1); - if (player->GetAttack()->pressed == 0) + target->Npc()->mName.c_str(), player->getAttack()->pressed == 1); + if (player->getAttack()->pressed == 0) { - LOG_APPEND(Log::LOG_VERBOSE, "success: %d", player->GetAttack()->success == 1); - if (player->GetAttack()->success == 1) + LOG_APPEND(Log::LOG_VERBOSE, "success: %d", player->getAttack()->success == 1); + if (player->getAttack()->success == 1) { - LOG_APPEND(Log::LOG_VERBOSE, "damage: %d", player->GetAttack()->damage == 1); + LOG_APPEND(Log::LOG_VERBOSE, "damage: %d", player->getAttack()->damage == 1); target->setLastAttackerId(player->GetID()); target->setLastAttackerTime(std::chrono::steady_clock::now()); } } myPacket->Send(player, true); - playerController->GetPacket(ID_GAME_DYNAMICSTATS)->RequestData(player->GetAttack()->target); + playerController->GetPacket(ID_GAME_DYNAMICSTATS)->RequestData(player->getAttack()->target); } break; }