From c31f6bc7dd8389bdb1033a8d6e9b5ac75e373231 Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 23 May 2019 00:04:34 +0200 Subject: [PATCH] show context menu entry only if roads are researched --- core/src/com/unciv/logic/map/action/BuildLongRoadAction.kt | 2 ++ desktop/src/com/unciv/app/desktop/DesktopLauncher.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/map/action/BuildLongRoadAction.kt b/core/src/com/unciv/logic/map/action/BuildLongRoadAction.kt index 108ace77..9a9cf451 100644 --- a/core/src/com/unciv/logic/map/action/BuildLongRoadAction.kt +++ b/core/src/com/unciv/logic/map/action/BuildLongRoadAction.kt @@ -3,6 +3,7 @@ package com.unciv.logic.map.action import com.badlogic.gdx.graphics.Color import com.unciv.logic.map.BFS import com.unciv.logic.map.MapUnit +import com.unciv.logic.map.RoadStatus import com.unciv.logic.map.TileInfo class BuildLongRoadAction( @@ -17,6 +18,7 @@ class BuildLongRoadAction( override fun isAvailable(): Boolean = unit.hasUnique("Can build improvements on tiles") && getPath(target).isNotEmpty() + && unit.civInfo.tech.getBestRoadAvailable() != RoadStatus.None override fun doPreTurnAction() { diff --git a/desktop/src/com/unciv/app/desktop/DesktopLauncher.java b/desktop/src/com/unciv/app/desktop/DesktopLauncher.java index 402744a2..0a7af1d2 100644 --- a/desktop/src/com/unciv/app/desktop/DesktopLauncher.java +++ b/desktop/src/com/unciv/app/desktop/DesktopLauncher.java @@ -17,7 +17,7 @@ class DesktopLauncher { // This is so they don't look all pixelated settings.filterMag = Texture.TextureFilter.MipMapLinearLinear; settings.filterMin = Texture.TextureFilter.MipMapLinearLinear; - TexturePacker.process(settings, "../images", ".", "game"); + TexturePacker.process(settings, "../Images", ".", "game"); LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); new LwjglApplication(new UnCivGame("Desktop"), config);