Skip to content

Commit

Permalink
fix: showing visited bases on the map
Browse files Browse the repository at this point in the history
FossilOrigin-Name: bbb33469b2b605824525ecc81e3f3482b7ad2e44f66c474690d709b1d15ac684
  • Loading branch information
thindil committed Jan 15, 2024
1 parent a3fb047 commit 09332b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nim/src/ui/mapsui.nim
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with Steam Sky. If not, see <http://www.gnu.org/licenses/>.

import std/[os, parsecfg, streams, strutils, tables]
import std/[os, parsecfg, streams, strutils, tables, unicode]
import ../[config, game, maps, messages, missions, shipscargo, shipsmovement,
statistics, stories, tk, types]
import coreui, dialogs, mapsuicommands, utilsui2, themes
Expand Down Expand Up @@ -459,7 +459,7 @@ proc drawMap*() =
mapChar = currentTheme.notVisitedBaseIcon
if skyBases[skyMap[x][y].baseIndex].known:
if skyBases[skyMap[x][y].baseIndex].visited.year > 0:
mapChar = factionsList[skyBases[skyMap[x][y].baseIndex].owner].baseIcon.toHex(4).parseHexStr
mapChar = factionsList[skyBases[skyMap[x][y].baseIndex].owner].baseIcon.Rune.toUTF8
mapTag = skyBases[skyMap[x][y].baseIndex].baseType
else:
mapTag = "unvisited"
Expand Down

0 comments on commit 09332b1

Please sign in to comment.