Skip to content

Commit

Permalink
Merge pull request #5723 from LandSandBoat/deeds-uint16
Browse files Browse the repository at this point in the history
Update deeds field for RoeSparkUpdatePacket to uint16
  • Loading branch information
claywar authored May 13, 2024
2 parents e42b3b4 + 0ecb99e commit 455008a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/map/packets/roe_sparkupdate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ CRoeSparkUpdatePacket::CRoeSparkUpdatePacket(CCharEntity* PChar)
if (ret != SQL_ERROR && _sql->NextRow() == SQL_SUCCESS)
{
ref<uint32>(0x04) = _sql->GetIntData(0);
ref<uint8>(0x08) = _sql->GetIntData(1);

ref<uint16>(0x08) = _sql->GetIntData(1);
ref<uint16>(0x0A) = _sql->GetIntData(2);

ref<uint8>(0x0C) = daysSinceEpoch % 6; // Unity Shared Daily (0-5)
ref<uint8>(0x0D) = weeksSinceEpoch % 4; // Unity Leader Weekly (0-3)
ref<uint16>(0x0E) = 0xFFFF;
Expand Down

0 comments on commit 455008a

Please sign in to comment.