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

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

View File

@ -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;

View File

@ -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));
}
}