Skip to content

Commit 1a204c6

Browse files
committed
List building upgrades in the sidebar (they are necessary for base nodes)
1 parent 532a9b5 commit 1a204c6

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

src/TSMapEditor/UI/Sidebar/ObjectListPanel.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -183,16 +183,6 @@ protected void InitObjectsBase<T>(List<T> objectTypeList, ShapeImage[] textures,
183183
if (!objectType.IsValidForTheater(Map.LoadedTheaterName))
184184
continue;
185185

186-
if (objectType.WhatAmI() == RTTIType.BuildingType)
187-
{
188-
var buildingType = (BuildingType)(TechnoType)objectType;
189-
if (buildingType.PowersUpBuilding != null)
190-
{
191-
// Don't list upgrades
192-
continue;
193-
}
194-
}
195-
196186
if (filter != null && !filter(objectType))
197187
continue;
198188

0 commit comments

Comments
 (0)