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))
return;
// Remove relationship rows first even though Stage 13 also uses FK
// cascades. Explicit cleanup keeps rollback deterministic if a database
// was created before the FK migration was applied.
// Remove relationship rows first even though the schema also uses foreign
// key cascades. Explicit cleanup keeps rollback deterministic for databases
// created before the corresponding FK migration was applied.
CharacterDatabase.DirectPExecute(
"DELETE FROM housing_room_connection WHERE RoomGuid = '{}' OR AttachedRoomGuid = '{}'",
room.RoomGuid.ToString(), room.RoomGuid.ToString());
@@ -453,8 +453,8 @@ namespace Housing
{ state.RotationX, state.RotationY, state.RotationZ, state.RotationW },
state.Scale, state.AttachmentFlags);
// Stage 13 rebuilds the exact persisted parent graph, including Doors,
// before exposing the parent. This keeps the new room CREATE internally
// Rebuild the exact persisted parent graph, including Doors, before
// exposing the parent. This keeps the new room CREATE internally
// consistent with both child MeshObjects and AttachedRoomGUID.
std::vector<ObjectGuid> meshGuids;
std::vector<RoomDoorState> doors;