mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 06:27:45 +00:00
Merge pull request #188 from goaaats/work
Add definition for legacy mark equip flag, fix logout dc
This commit is contained in:
commit
1edfc8490d
3 changed files with 3 additions and 1 deletions
|
@ -792,6 +792,7 @@ namespace Common {
|
|||
HideNothing = 0x0,
|
||||
HideHead = 0x1,
|
||||
HideWeapon = 0x2,
|
||||
LegacyMark = 0x4,
|
||||
|
||||
Visor = 0x40,
|
||||
};
|
||||
|
|
|
@ -286,6 +286,7 @@ void Core::Network::GameConnection::updatePositionHandler( const Packets::GamePa
|
|||
void Core::Network::GameConnection::reqEquipDisplayFlagsHandler( const Packets::GamePacket& inPacket,
|
||||
Entity::PlayerPtr pPlayer )
|
||||
{
|
||||
g_log.info( "[" + std::to_string( pPlayer->getId() ) + "] Setting EquipDisplayFlags to " + std::to_string( inPacket.getValAt< uint8_t >( 0x20 ) ) );
|
||||
pPlayer->setEquipDisplayFlags( inPacket.getValAt< uint8_t >( 0x20 ) );
|
||||
}
|
||||
|
||||
|
|
|
@ -292,7 +292,7 @@ void Core::ServerZone::mainLoop()
|
|||
auto pPlayer = it->second->getPlayer();
|
||||
|
||||
// remove session of players marked for removel ( logoff / kick )
|
||||
if( pPlayer->isMarkedForRemoval() && diff > 1 )
|
||||
if( pPlayer->isMarkedForRemoval() && diff > 5 )
|
||||
{
|
||||
it->second->close();
|
||||
// if( it->second.unique() )
|
||||
|
|
Loading…
Add table
Reference in a new issue