1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-25 05:57:45 +00:00

Fixed state flags

This commit is contained in:
Mordred 2018-02-04 00:43:36 +01:00
parent 11aaa596b9
commit ee5196b372
3 changed files with 6 additions and 8 deletions

View file

@ -388,7 +388,6 @@ namespace Common {
enum struct PlayerStateFlag : uint8_t
{
SomeFlag,
NoCombat,
Combat,
Casting,

View file

@ -829,11 +829,10 @@ struct FFXIVIpcActorOwner : FFXIVIpcBasePacket<ActorOwner>
*/
struct FFXIVIpcPlayerStateFlags : FFXIVIpcBasePacket<PlayerStateFlags>
{
/* 0000 */ uint16_t padding;
/* 0002 */ uint8_t flags[7];
/* 0009 */ uint8_t padding1[3];
/* 000C */ uint32_t padding2;
uint8_t flags[7];
uint8_t padding1[3];
uint32_t padding2;
uint16_t padding;
};
/**

View file

@ -53,7 +53,7 @@ void Core::Action::EventAction::onStart()
if( m_pSource->isPlayer() )
{
m_pSource->sendToInRangeSet( control, true );
m_pSource->getAsPlayer()->setStateFlag( PlayerStateFlag::SomeFlag );
m_pSource->getAsPlayer()->setStateFlag( PlayerStateFlag::Occupied2 );
}
else
m_pSource->sendToInRangeSet( control );
@ -82,7 +82,7 @@ void Core::Action::EventAction::onFinish()
if( m_pSource->isPlayer() )
{
m_pSource->getAsPlayer()->unsetStateFlag( PlayerStateFlag::SomeFlag );
m_pSource->getAsPlayer()->unsetStateFlag( PlayerStateFlag::Occupied2 );
m_pSource->sendToInRangeSet( control, true );
}
else