mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 14:37:44 +00:00
cleanup spawn slot handling for bnpcs
This commit is contained in:
parent
603604b28d
commit
9712f94d00
1 changed files with 7 additions and 10 deletions
|
@ -76,17 +76,14 @@ namespace Sapphire::Network::Packets::Server
|
||||||
m_data.bNPCName = bnpc.getBNpcNameId();
|
m_data.bNPCName = bnpc.getBNpcNameId();
|
||||||
|
|
||||||
m_data.state = 1;
|
m_data.state = 1;
|
||||||
if( target.getId() == bnpc.getId() )
|
|
||||||
{
|
|
||||||
m_data.spawnIndex = 0x00;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
m_data.spawnIndex = target.getSpawnIdForActorId( bnpc.getId() );
|
|
||||||
|
|
||||||
if( !target.isActorSpawnIdValid( m_data.spawnIndex ) )
|
assert( target.getId() != bnpc.getId() );
|
||||||
return;
|
|
||||||
}
|
m_data.spawnIndex = target.getSpawnIdForActorId( bnpc.getId() );
|
||||||
|
|
||||||
|
if( !target.isActorSpawnIdValid( m_data.spawnIndex ) )
|
||||||
|
return;
|
||||||
|
|
||||||
// 0x20 == spawn hidden to be displayed by the spawneffect control
|
// 0x20 == spawn hidden to be displayed by the spawneffect control
|
||||||
//m_data.displayFlags = bnpc.getDisplayFlags();
|
//m_data.displayFlags = bnpc.getDisplayFlags();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue