mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 22:37:45 +00:00
Merge pull request #436 from NotAdam/housing
Fix ward info issue, some cleanup
This commit is contained in:
commit
e5d7ffdb77
4 changed files with 12 additions and 9 deletions
|
@ -19,12 +19,6 @@ MODIFY COLUMN UPDATE_DATE DATETIME NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURR
|
|||
ALTER TABLE charainfosearch
|
||||
MODIFY COLUMN UPDATE_DATE DATETIME NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
|
||||
|
||||
ALTER TABLE charaitemcrystal
|
||||
MODIFY COLUMN UPDATE_DATE DATETIME NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
|
||||
|
||||
ALTER TABLE charaitemcurrency
|
||||
MODIFY COLUMN UPDATE_DATE DATETIME NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
|
||||
|
||||
ALTER TABLE charaitemgearset
|
||||
MODIFY COLUMN UPDATE_DATE DATETIME NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;
|
||||
|
||||
|
|
Binary file not shown.
|
@ -240,8 +240,13 @@ void Core::HousingMgr::sendWardLandInfo( Entity::Player& player, uint8_t wardId,
|
|||
|
||||
auto& entry = wardInfoPacket->data().houseInfoEntry[ i ];
|
||||
|
||||
// retail always sends the house price in this packet, even after the house has been sold
|
||||
// so I guess we do the same
|
||||
entry.housePrice = land->getCurrentPrice();
|
||||
|
||||
if( land->getState() == Common::HouseState::forSale )
|
||||
continue;
|
||||
|
||||
switch( land->getLandType() )
|
||||
{
|
||||
case LandType::FreeCompany:
|
||||
|
|
|
@ -410,14 +410,18 @@ bool Core::TerritoryMgr::movePlayer( ZonePtr pZone, Core::Entity::PlayerPtr pPla
|
|||
if( isHousingTerritory( pZone->getTerritoryTypeId() ) )
|
||||
{
|
||||
auto pHousing = std::dynamic_pointer_cast< HousingZone >( pZone );
|
||||
if( pHousing )
|
||||
if( pHousing )
|
||||
pPlayer->setTerritoryId( pHousing->getLandSetId() );
|
||||
}
|
||||
}
|
||||
else if( isInstanceContentTerritory( pZone->getTerritoryTypeId() ) )
|
||||
{
|
||||
pPlayer->setTerritoryId( pZone->getGuId() );
|
||||
}
|
||||
else
|
||||
{
|
||||
pPlayer->setTerritoryId( 0 );
|
||||
}
|
||||
|
||||
|
||||
// mark character as zoning in progress
|
||||
pPlayer->setLoadingComplete( false );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue