Skip to content

Commit

Permalink
Standardise TR5 rooms (LostArtefacts#641)
Browse files Browse the repository at this point in the history
  • Loading branch information
lahm86 authored May 1, 2024
1 parent 2dfe18e commit d6dea70
Show file tree
Hide file tree
Showing 34 changed files with 1,706 additions and 733 deletions.
4 changes: 2 additions & 2 deletions TRFDControl/FDControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void ParseFromLevel(TR4Level level)

public void ParseFromLevel(TR5Level level)
{
ParseLevel(level.Rooms.SelectMany(r => r.RoomData.SectorList), level.FloorData);
ParseLevel(level.Rooms.SelectMany(r => r.Sectors), level.FloorData);
}

private void ParseLevel(IEnumerable<TRRoomSector> roomSectors, List<ushort> floorData)
Expand Down Expand Up @@ -272,7 +272,7 @@ public void WriteToLevel(TR4Level level)

public void WriteToLevel(TR5Level level)
{
Flatten(level.Rooms.SelectMany(r => r.RoomData.SectorList), level.FloorData);
Flatten(level.Rooms.SelectMany(r => r.Sectors), level.FloorData);
}

private void Flatten(IEnumerable<TRRoomSector> sectors, List<ushort> data)
Expand Down
Loading

0 comments on commit d6dea70

Please sign in to comment.