Skip to content

Commit

Permalink
A bit more space efficiency for negative integers.
Browse files Browse the repository at this point in the history
  • Loading branch information
rfortier committed May 5, 2024
1 parent 1270cd4 commit 1dc6857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/encoding/Structs/AnimationVariables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void AnimationVariables::GenerateDiff(const AnimationVariables& aPrevious, Tilte
auto biter = changedVector.begin() + Booleans.size();
for (size_t i = 0; i < Integers.size(); i++)
if (*biter++)
TiltedPhoques::Serialization::WriteVarInt(aWriter, Integers[i]);
TiltedPhoques::Serialization::WriteVarInt(aWriter, Integers[i] & 0xFFFFFFFF);
for (size_t i = 0; i < Floats.size(); i++)
if (*biter++)
TiltedPhoques::Serialization::WriteFloat(aWriter, Floats[i]);
Expand Down

0 comments on commit 1dc6857

Please sign in to comment.