From ced729805eb40660de85a72d0320f5ae1f0dac5d Mon Sep 17 00:00:00 2001 From: Alexey Kim Date: Fri, 19 Aug 2022 00:33:27 +0300 Subject: [PATCH] Disable using SmashButton iso as overmap tileset --- src/options.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/options.cpp b/src/options.cpp index 4a1c5abe1d861..24862918e114c 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -2085,9 +2085,15 @@ void options_manager::add_options_graphics() get_option( "USE_TILES_OVERMAP" ).setPrerequisite( "USE_TILES" ); + std::vector om_tilesets = build_tilesets_list(); + // filter out SmashButton_iso from overmap tilesets + om_tilesets.erase( std::remove_if( om_tilesets.begin(), om_tilesets.end(), []( const auto & it ) { + return it.first == "SmashButton_iso"; + } ), om_tilesets.end() ); + add( "OVERMAP_TILES", "graphics", to_translation( "Choose overmap tileset" ), to_translation( "Choose the overmap tileset you want to use." ), - build_tilesets_list(), "retrodays", COPT_CURSES_HIDE + om_tilesets, "retrodays", COPT_CURSES_HIDE ); // populate the options dynamically get_option( "OVERMAP_TILES" ).setPrerequisite( "USE_TILES_OVERMAP" );