mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 22:37:45 +00:00
I love me some style and wording fixes
This commit is contained in:
parent
10eec1f954
commit
168cc7409b
1 changed files with 3 additions and 6 deletions
|
@ -1600,18 +1600,18 @@ void Core::Entity::Player::sendTitleList()
|
|||
queuePacket( titleListPacket );
|
||||
}
|
||||
|
||||
void Core::Entity::Player::sendZoneInPackets( uint32_t param1, uint32_t param2 = 0, uint32_t param3 = 0, uint32_t param4 = 0, bool pSetStatus = false )
|
||||
void Core::Entity::Player::sendZoneInPackets( uint32_t param1, uint32_t param2 = 0, uint32_t param3 = 0, uint32_t param4 = 0, bool shouldSetStatus = false )
|
||||
{
|
||||
auto zoneInPacket = ActorControlPacket143( getId(), ZoneIn, param1, param2, param3, param4 );
|
||||
auto SetStatusPacket = ActorControlPacket142( getId(), SetStatus, static_cast< uint8_t >( Entity::Chara::ActorStatus::Idle ) );
|
||||
|
||||
if( getGmInvis() )
|
||||
sendToInRangeSet( zoneInPacket, true );
|
||||
if( pSetStatus )
|
||||
if( shouldSetStatus )
|
||||
sendToInRangeSet( SetStatusPacket );
|
||||
else
|
||||
queuePacket( zoneInPacket );
|
||||
if (pSetStatus)
|
||||
if ( shouldSetStatus )
|
||||
queuePacket( SetStatusPacket );
|
||||
|
||||
setZoningType( Common::ZoneingType::None );
|
||||
|
@ -1638,10 +1638,7 @@ void Core::Entity::Player::finishZoning()
|
|||
resetHp();
|
||||
resetMp();
|
||||
setStatus( Entity::Chara::ActorStatus::Idle );
|
||||
|
||||
sendZoneInPackets( 0x01, 0x01, 0, 111, true );
|
||||
sendToInRangeSet( ActorControlPacket142( getId(), SetStatus,
|
||||
static_cast< uint8_t >( Entity::Chara::ActorStatus::Idle ) ), true );
|
||||
}
|
||||
else
|
||||
sendZoneInPackets( 0x01, 0x00, 0, 111 );
|
||||
|
|
Loading…
Add table
Reference in a new issue