mirror of
https://github.com/kwsch/NHSE.git
synced 2026-07-19 16:51:28 -05:00
Show roads as brown
This commit is contained in:
parent
38c4764967
commit
6bb54264e8
|
|
@ -249,4 +249,10 @@ public enum TerrainUnitModel : ushort
|
|||
RoadWood7A = 0x110,
|
||||
RoadWood8A = 0x111,
|
||||
}
|
||||
|
||||
public static class TerrainUnitModelExtensions
|
||||
{
|
||||
public static bool IsRoad(this TerrainUnitModel t) =>
|
||||
t >= TerrainUnitModel.RoadBrick0A || (TerrainUnitModel.RoadSoil0A <= t && t <= TerrainUnitModel.RoadStone8A);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@ public static class TerrainSprite
|
|||
{
|
||||
public static Color GetTileColor(TerrainTile tile)
|
||||
{
|
||||
if (tile.UnitModelRoad.IsRoad())
|
||||
return Color.RosyBrown;
|
||||
var name = tile.UnitModel.ToString();
|
||||
var baseColor = GetTileColor(name);
|
||||
if (tile.Elevation == 0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user