mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-25 22:17:45 +00:00
cleanup old setrot calls using float -> u16
This commit is contained in:
parent
6e6ffc7cf3
commit
c1f7d9ddef
1 changed files with 4 additions and 5 deletions
|
@ -144,7 +144,7 @@ bool Sapphire::World::Manager::HousingMgr::loadEstateInventories()
|
|||
res->getFloat( "PosZ" )
|
||||
} );
|
||||
|
||||
item->setRot( res->getUInt16( "Rotation" ) );
|
||||
item->setRot( res->getFloat( "Rotation" ) );
|
||||
}
|
||||
|
||||
ContainerIdToContainerMap& estateInv = m_estateInventories[ ident ];
|
||||
|
@ -1008,7 +1008,7 @@ void Sapphire::World::Manager::HousingMgr::reqPlaceHousingItem( Sapphire::Entity
|
|||
|
||||
// set params
|
||||
item->setPos( pos );
|
||||
item->setRot( Util::floatToUInt16Rot( rotation ) );
|
||||
item->setRot( rotation );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1277,8 +1277,7 @@ bool Sapphire::World::Manager::HousingMgr::moveInternalItem( Entity::Player& pla
|
|||
return false;
|
||||
|
||||
item->setPos( pos );
|
||||
|
||||
item->setRot( Util::floatToUInt16Rot( rot ) );
|
||||
item->setRot( rot );
|
||||
|
||||
// save
|
||||
auto invMgr = framework()->get< InventoryMgr >();
|
||||
|
@ -1316,7 +1315,7 @@ bool Sapphire::World::Manager::HousingMgr::moveExternalItem( Entity::Player& pla
|
|||
return false;
|
||||
|
||||
item->setPos( pos );
|
||||
item->setRot( Util::floatToUInt16Rot( rot ) );
|
||||
item->setRot( rot );
|
||||
|
||||
auto invMgr = framework()->get< InventoryMgr >();
|
||||
invMgr->updateHousingItemPosition( item );
|
||||
|
|
Loading…
Add table
Reference in a new issue