mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 15:15:31 +00:00
[Client] Rename updateDynamicStats() into updateStatsDynamic()
This commit is contained in:
parent
00aa8839d4
commit
678edffb5a
5 changed files with 8 additions and 8 deletions
|
@ -885,7 +885,7 @@ namespace MWClass
|
|||
|
||||
if (ptr == MWMechanics::getPlayer())
|
||||
{
|
||||
mwmp::Main::get().getLocalPlayer()->updateDynamicStats(true);
|
||||
mwmp::Main::get().getLocalPlayer()->updateStatsDynamic(true);
|
||||
mwmp::Main::get().getLocalPlayer()->updatePosition(true); // fix position after getting damage;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@ void LocalPlayer::update()
|
|||
updateAttackState();
|
||||
updateDeadState();
|
||||
updateEquipment();
|
||||
updateDynamicStats();
|
||||
updateStatsDynamic();
|
||||
updateAttributes();
|
||||
updateSkills();
|
||||
updateLevel();
|
||||
|
@ -141,7 +141,7 @@ bool LocalPlayer::charGenThread()
|
|||
// only happens for new characters
|
||||
if (charGenStage.end != 1)
|
||||
{
|
||||
updateDynamicStats(true);
|
||||
updateStatsDynamic(true);
|
||||
updateAttributes(true);
|
||||
updateSkills(true);
|
||||
updateLevel(true);
|
||||
|
@ -165,7 +165,7 @@ bool LocalPlayer::hasFinishedCharGen()
|
|||
return charGenStage.end == 0;
|
||||
}
|
||||
|
||||
void LocalPlayer::updateDynamicStats(bool forceUpdate)
|
||||
void LocalPlayer::updateStatsDynamic(bool forceUpdate)
|
||||
{
|
||||
MWWorld::Ptr player = getPlayerPtr();
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace mwmp
|
|||
bool charGenThread(); // return true if CGStage::current == CGStage::end
|
||||
bool hasFinishedCharGen();
|
||||
|
||||
void updateDynamicStats(bool forceUpdate = false);
|
||||
void updateStatsDynamic(bool forceUpdate = false);
|
||||
void updateAttributes(bool forceUpdate = false);
|
||||
void updateSkills(bool forceUpdate = false);
|
||||
void updateLevel(bool forceUpdate = false);
|
||||
|
|
|
@ -205,7 +205,7 @@ void Main::updateWorld(float dt) const
|
|||
mNetworking->getPlayerPacket(ID_LOADED)->setPlayer(getLocalPlayer());
|
||||
mNetworking->getPlayerPacket(ID_PLAYER_BASEINFO)->Send();
|
||||
mNetworking->getPlayerPacket(ID_LOADED)->Send();
|
||||
mLocalPlayer->updateDynamicStats(true);
|
||||
mLocalPlayer->updateStatsDynamic(true);
|
||||
get().getGUIController()->setChatVisible(true);
|
||||
}
|
||||
else
|
||||
|
|
|
@ -504,7 +504,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet)
|
|||
{
|
||||
if (packet->length == myPacket->headerSize())
|
||||
{
|
||||
getLocalPlayer()->updateDynamicStats(true);
|
||||
getLocalPlayer()->updateStatsDynamic(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -576,7 +576,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet)
|
|||
myPacket->setPlayer(getLocalPlayer());
|
||||
myPacket->Send(serverAddr);
|
||||
|
||||
getLocalPlayer()->updateDynamicStats(true);
|
||||
getLocalPlayer()->updateStatsDynamic(true);
|
||||
playerPacketController.GetPacket(ID_PLAYER_STATS_DYNAMIC)->setPlayer(getLocalPlayer());
|
||||
playerPacketController.GetPacket(ID_PLAYER_STATS_DYNAMIC)->Send(serverAddr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue