mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-28 11:09:40 +00:00
[Client] Use forceUpdate correctly in LocalPlayer::updateStatsDynamic()
Previously, the forceUpdate argument was useless, preventing dynamic stats from being sent by certain newly created characters.
This commit is contained in:
parent
bfd7c83c4d
commit
17f13872aa
1 changed files with 4 additions and 4 deletions
|
@ -225,16 +225,16 @@ void LocalPlayer::updateStatsDynamic(bool forceUpdate)
|
|||
|| abs(oldVal.getCurrent() - newVal.getCurrent()) >= limit);
|
||||
};
|
||||
|
||||
if (needUpdate(oldHealth, health, 2))
|
||||
if (forceUpdate || needUpdate(oldHealth, health, 2))
|
||||
statsDynamicIndexChanges.push_back(0);
|
||||
|
||||
if (needUpdate(oldMagicka, magicka, 4))
|
||||
if (forceUpdate || needUpdate(oldMagicka, magicka, 4))
|
||||
statsDynamicIndexChanges.push_back(1);
|
||||
|
||||
if (needUpdate(oldFatigue, fatigue, 4))
|
||||
if (forceUpdate || needUpdate(oldFatigue, fatigue, 4))
|
||||
statsDynamicIndexChanges.push_back(2);
|
||||
|
||||
if (statsDynamicIndexChanges.size() > 0 || forceUpdate)
|
||||
if (forceUpdate || statsDynamicIndexChanges.size() > 0)
|
||||
{
|
||||
oldHealth = health;
|
||||
oldMagicka = magicka;
|
||||
|
|
Loading…
Reference in a new issue