From 060ebe3d4ac2e78d4acf094a4979de1e29cee7aa Mon Sep 17 00:00:00 2001 From: Koncord Date: Sat, 2 Sep 2017 19:45:19 +0800 Subject: [PATCH] [Server] Init isWerewolf variable Comment unused code --- apps/openmw-mp/Actors.cpp | 8 ++++---- components/openmw-mp/Base/BasePlayer.hpp | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/openmw-mp/Actors.cpp b/apps/openmw-mp/Actors.cpp index bfd062d57..b2c501c51 100644 --- a/apps/openmw-mp/Actors.cpp +++ b/apps/openmw-mp/Actors.cpp @@ -135,9 +135,9 @@ void ActorController::sendActors(std::shared_ptr player, std::vector player, std::vectorstatsChanged) statsChanged = true; - if (actor->attributesChanged) + /*if (actor->attributesChanged) attributesChanged = true; if (actor->skillsChanged) skillsChanged = true; if (actor->baseInfoChanged) - baseInfoChanged = true; + baseInfoChanged = true;*/ if (actor->inventory.isEquipmentChanged()) { equipmentChanged = true; diff --git a/components/openmw-mp/Base/BasePlayer.hpp b/components/openmw-mp/Base/BasePlayer.hpp index a5cf11cc5..e3dd36a4f 100644 --- a/components/openmw-mp/Base/BasePlayer.hpp +++ b/components/openmw-mp/Base/BasePlayer.hpp @@ -185,6 +185,7 @@ namespace mwmp spellbookChanges.action = 0; spellbookChanges.count = 0; useCreatureName = false; + isWerewolf = false; } BasePlayer()