fix not sending update when hat/visor/weaponstate has changed between jobchanges
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Authors></Authors>
|
<Authors></Authors>
|
||||||
<Company></Company>
|
<Company></Company>
|
||||||
<Version>0.2.4.0</Version>
|
<Version>0.2.5.0</Version>
|
||||||
<Description></Description>
|
<Description></Description>
|
||||||
<Copyright></Copyright>
|
<Copyright></Copyright>
|
||||||
<PackageProjectUrl>https://github.com/Penumbra-Sync/client</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/Penumbra-Sync/client</PackageProjectUrl>
|
||||||
|
|||||||
@@ -103,14 +103,14 @@ namespace MareSynchronos.Models
|
|||||||
var newWeaponOrVisorState = Marshal.ReadByte((IntPtr)customizeData + 31, 0);
|
var newWeaponOrVisorState = Marshal.ReadByte((IntPtr)customizeData + 31, 0);
|
||||||
if (newHatState != HatState)
|
if (newHatState != HatState)
|
||||||
{
|
{
|
||||||
if (HatState != null) DoNotSendUpdate = true;
|
if (HatState != null && !hasChanges) DoNotSendUpdate = true;
|
||||||
HatState = newHatState;
|
HatState = newHatState;
|
||||||
hasChanges = true;
|
hasChanges = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newWeaponOrVisorState != VisorWeaponState)
|
if (newWeaponOrVisorState != VisorWeaponState)
|
||||||
{
|
{
|
||||||
if (VisorWeaponState != null) DoNotSendUpdate = true;
|
if (VisorWeaponState != null && !hasChanges) DoNotSendUpdate = true;
|
||||||
VisorWeaponState = newWeaponOrVisorState;
|
VisorWeaponState = newWeaponOrVisorState;
|
||||||
hasChanges = true;
|
hasChanges = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user