Fixed state being wrong size. Player substate will always be 0xBF.

This commit is contained in:
Filip Maj committed 2016-01-09 00:06:56 -05:00
1 parent fac9d28529
commit 315ec1f220
2 files changed
+3 -1

No files matched your search

@@ -45,6 +45,8 @@ namespace FFXIVClassic_Map_Server.dataobjects.chara
{
actorName = String.Format("_player{0:00000000}", actorID);
currentSubState = SetActorStatePacket.SUB_STATE_PLAYER;
DBStats stats = Database.getCharacterStats(actorID);
charaWork.property[0] = 1;
@@ -34,7 +34,7 @@ namespace FFXIVClassic_Map_Server.packets.send.actor
public static SubPacket buildPacket(uint playerActorID, uint targetID, uint mainState, uint subState)
{
uint combined = (mainState & 0xFF) | ((subState & 0xFF) << 8);
ulong combined = (mainState & 0xFF) | ((subState & 0xFF) << 8);
return new SubPacket(OPCODE, playerActorID, targetID, BitConverter.GetBytes(combined));
}
}