1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-26 06:27:45 +00:00

you can now relinquish the land directly after removing the house without relogging

This commit is contained in:
Mordred 2023-01-28 17:43:46 +01:00
parent 78b66b9c92
commit f3e8ecee15

View file

@ -1759,7 +1759,8 @@ void HousingMgr::removeHouse( Entity::Player& player, uint16_t plot )
land->updateLandDb();
terri->sendLandUpdate( plot );
player.setLandFlags( Common::LandFlagsSlot::Private, 0, land->getLandIdent() );
player.setLandFlags( Common::LandFlagsSlot::Private, Common::HOUSING_LAND_STATUS::HOUSING_LAND_STATUS_NOINIT, land->getLandIdent() );
sendLandFlagsSlot( player, Common::LandFlagsSlot::Private );
terri->removeEstateEntranceEObj( plot );
return;