Skip to content

Commit 985773c

Browse files
ChrisF-127Falconne
authored andcommitted
Added check that number of BorderCells for rooms is more than 0 when getting cell for temperature label placement to prevent strange cases of rooms with no BorderCells causing an error // Updated HeatMap.dll in "mod-structure/v1.3/Assemblies" folder
1 parent d018a61 commit 985773c

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

mod-structure/Assemblies/HeatMap.dll

-16.5 KB
Binary file not shown.
0 Bytes
Binary file not shown.

src/HeatMap/RoomTemperatureDisplayer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void Update(int updateDelay)
2929

3030
foreach (var room in _map.regionGrid.allRooms)
3131
{
32-
if (room.PsychologicallyOutdoors || room.Fogged || room.IsDoorway)
32+
if (room.PsychologicallyOutdoors || room.Fogged || room.IsDoorway || room.BorderCells.Count() == 0)
3333
continue;
3434

3535
var cell = GetBestCellForRoom(room, _map);

0 commit comments

Comments
 (0)