Skip to content

Commit

Permalink
Analytics: Fix effect start duration and orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sejsel committed Dec 14, 2023
1 parent 520bff5 commit e1bb3e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EVTCAnalytics/Processing/LogProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1205,8 +1205,8 @@ Skill GetSkillByIdOrAdd(uint id)

// is shields + is_offcycle + pad61 + pad62 + pad63 + pad64 = int16[3] orientation
Span<byte> orientationBytes = stackalloc byte[6];
durationBytes[0] = item.IsShields;
durationBytes[1] = item.IsOffCycle;
orientationBytes[0] = item.IsShields;
orientationBytes[1] = item.IsOffCycle;
BitConverter.TryWriteBytes(orientationBytes[2..6], item.Padding);

ushort duration = BitConverter.ToUInt16(durationBytes);
Expand Down

0 comments on commit e1bb3e4

Please sign in to comment.