Core/Housing: stage 25 remove historical stage labels from room session

This commit is contained in:
Gexo91
2026-09-12 16:18:08 +03:00
parent c6234c6312
commit aa2876646d
@@ -423,9 +423,9 @@ namespace Housing
if (!IsRoomGuid(room.RoomGuid) || !IsHouseGuid(room.HouseGuid)) if (!IsRoomGuid(room.RoomGuid) || !IsHouseGuid(room.HouseGuid))
return; return;
// Remove relationship rows first even though Stage 13 also uses FK // Remove relationship rows first even though the schema also uses foreign
// cascades. Explicit cleanup keeps rollback deterministic if a database // key cascades. Explicit cleanup keeps rollback deterministic for databases
// was created before the FK migration was applied. // created before the corresponding FK migration was applied.
CharacterDatabase.DirectPExecute( CharacterDatabase.DirectPExecute(
"DELETE FROM housing_room_connection WHERE RoomGuid = '{}' OR AttachedRoomGuid = '{}'", "DELETE FROM housing_room_connection WHERE RoomGuid = '{}' OR AttachedRoomGuid = '{}'",
room.RoomGuid.ToString(), room.RoomGuid.ToString()); room.RoomGuid.ToString(), room.RoomGuid.ToString());
@@ -453,8 +453,8 @@ namespace Housing
{ state.RotationX, state.RotationY, state.RotationZ, state.RotationW }, { state.RotationX, state.RotationY, state.RotationZ, state.RotationW },
state.Scale, state.AttachmentFlags); state.Scale, state.AttachmentFlags);
// Stage 13 rebuilds the exact persisted parent graph, including Doors, // Rebuild the exact persisted parent graph, including Doors, before
// before exposing the parent. This keeps the new room CREATE internally // exposing the parent. This keeps the new room CREATE internally
// consistent with both child MeshObjects and AttachedRoomGUID. // consistent with both child MeshObjects and AttachedRoomGUID.
std::vector<ObjectGuid> meshGuids; std::vector<ObjectGuid> meshGuids;
std::vector<RoomDoorState> doors; std::vector<RoomDoorState> doors;