From f3e8ecee150d0ecf8a3e909c24a1ef87ed0b306c Mon Sep 17 00:00:00 2001 From: Mordred Date: Sat, 28 Jan 2023 17:43:46 +0100 Subject: [PATCH] you can now relinquish the land directly after removing the house without relogging --- src/world/Manager/HousingMgr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/world/Manager/HousingMgr.cpp b/src/world/Manager/HousingMgr.cpp index eff4b737..bbccff83 100644 --- a/src/world/Manager/HousingMgr.cpp +++ b/src/world/Manager/HousingMgr.cpp @@ -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;