diff --git a/apps/openmw/mwmp/DedicatedPlayer.cpp b/apps/openmw/mwmp/DedicatedPlayer.cpp index 6c4aff2b1..4e74b40f3 100644 --- a/apps/openmw/mwmp/DedicatedPlayer.cpp +++ b/apps/openmw/mwmp/DedicatedPlayer.cpp @@ -52,8 +52,6 @@ DedicatedPlayer::DedicatedPlayer(RakNet::RakNetGUID guid) : BasePlayer(guid) // the ground creatureStats.mDynamic[2].mBase = 1000; - movementFlags = 0; - hasTcl = false; attack.instant = false; cell.blank(); diff --git a/apps/openmw/mwmp/LocalPlayer.cpp b/apps/openmw/mwmp/LocalPlayer.cpp index 39b536fcd..9f3412186 100644 --- a/apps/openmw/mwmp/LocalPlayer.cpp +++ b/apps/openmw/mwmp/LocalPlayer.cpp @@ -53,13 +53,6 @@ LocalPlayer::LocalPlayer() charGenState.endStage = 1; charGenState.isFinished = false; - difficulty = 0; - physicsFramerate = 60.0; - consoleAllowed = false; - bedRestAllowed = true; - wildernessRestAllowed = true; - waitAllowed = true; - ignorePosPacket = false; ignoreJailTeleportation = false; ignoreJailSkillIncreases = false; @@ -81,10 +74,6 @@ LocalPlayer::LocalPlayer() jailProgressText = ""; jailEndText = ""; - scale = 1; - isWerewolf = false; - hasTcl = false; - isReceivingInventory = false; isReceivingQuickKeys = false; isPlayingAnimation = false; diff --git a/components/openmw-mp/Base/BasePlayer.hpp b/components/openmw-mp/Base/BasePlayer.hpp index bbb4caa94..f3d82e299 100644 --- a/components/openmw-mp/Base/BasePlayer.hpp +++ b/components/openmw-mp/Base/BasePlayer.hpp @@ -218,21 +218,21 @@ namespace mwmp ESM::ActiveSpells activeSpells; CurrentContainer currentContainer; - int difficulty; + int difficulty = 0; int enforcedLogLevel; - float physicsFramerate; - bool consoleAllowed; - bool bedRestAllowed; - bool wildernessRestAllowed; - bool waitAllowed; + float physicsFramerate = 60.0; + bool consoleAllowed = false; + bool bedRestAllowed = true; + bool wildernessRestAllowed = true; + bool waitAllowed = true; bool ignorePosPacket; - unsigned int movementFlags; + unsigned int movementFlags = 0; char movementAnim; char drawState; - bool isFlying; - bool hasTcl; + bool isFlying = false; + bool hasTcl = false; ESM::Position position; ESM::Position direction; @@ -255,9 +255,9 @@ namespace mwmp Animation animation; char deathState; - bool resetStats; - float scale; - bool isWerewolf; + bool resetStats = false; + float scale = 1; + bool isWerewolf = false; bool displayCreatureName; std::string creatureRefId;