1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-28 21:06:41 +00:00

[General] Set default values for some variables in BasePlayer

This commit is contained in:
David Cernat 2019-12-01 18:42:56 +02:00
parent 1283d5d487
commit 446c22723e
3 changed files with 12 additions and 25 deletions

View file

@ -52,8 +52,6 @@ DedicatedPlayer::DedicatedPlayer(RakNet::RakNetGUID guid) : BasePlayer(guid)
// the ground // the ground
creatureStats.mDynamic[2].mBase = 1000; creatureStats.mDynamic[2].mBase = 1000;
movementFlags = 0;
hasTcl = false;
attack.instant = false; attack.instant = false;
cell.blank(); cell.blank();

View file

@ -53,13 +53,6 @@ LocalPlayer::LocalPlayer()
charGenState.endStage = 1; charGenState.endStage = 1;
charGenState.isFinished = false; charGenState.isFinished = false;
difficulty = 0;
physicsFramerate = 60.0;
consoleAllowed = false;
bedRestAllowed = true;
wildernessRestAllowed = true;
waitAllowed = true;
ignorePosPacket = false; ignorePosPacket = false;
ignoreJailTeleportation = false; ignoreJailTeleportation = false;
ignoreJailSkillIncreases = false; ignoreJailSkillIncreases = false;
@ -81,10 +74,6 @@ LocalPlayer::LocalPlayer()
jailProgressText = ""; jailProgressText = "";
jailEndText = ""; jailEndText = "";
scale = 1;
isWerewolf = false;
hasTcl = false;
isReceivingInventory = false; isReceivingInventory = false;
isReceivingQuickKeys = false; isReceivingQuickKeys = false;
isPlayingAnimation = false; isPlayingAnimation = false;

View file

@ -218,21 +218,21 @@ namespace mwmp
ESM::ActiveSpells activeSpells; ESM::ActiveSpells activeSpells;
CurrentContainer currentContainer; CurrentContainer currentContainer;
int difficulty; int difficulty = 0;
int enforcedLogLevel; int enforcedLogLevel;
float physicsFramerate; float physicsFramerate = 60.0;
bool consoleAllowed; bool consoleAllowed = false;
bool bedRestAllowed; bool bedRestAllowed = true;
bool wildernessRestAllowed; bool wildernessRestAllowed = true;
bool waitAllowed; bool waitAllowed = true;
bool ignorePosPacket; bool ignorePosPacket;
unsigned int movementFlags; unsigned int movementFlags = 0;
char movementAnim; char movementAnim;
char drawState; char drawState;
bool isFlying; bool isFlying = false;
bool hasTcl; bool hasTcl = false;
ESM::Position position; ESM::Position position;
ESM::Position direction; ESM::Position direction;
@ -255,9 +255,9 @@ namespace mwmp
Animation animation; Animation animation;
char deathState; char deathState;
bool resetStats; bool resetStats = false;
float scale; float scale = 1;
bool isWerewolf; bool isWerewolf = false;
bool displayCreatureName; bool displayCreatureName;
std::string creatureRefId; std::string creatureRefId;