diff --git a/src/overmap.cpp b/src/overmap.cpp index 286383b74350e..596df416dc47a 100644 --- a/src/overmap.cpp +++ b/src/overmap.cpp @@ -1081,6 +1081,7 @@ nc_color oter_t::get_color( om_vision_level vision, const bool from_land_use_cod std::string oter_t::get_tileset_id( om_vision_level vision ) const { + // If this changes, be sure to change the debug display on the overmap ui to not strip the prefix! if( type->vision_levels->viewed( vision ) != nullptr ) { return string_format( "vl#%s$%s", type->vision_levels.str(), io::enum_to_string( vision ) ); } diff --git a/src/overmap_ui.cpp b/src/overmap_ui.cpp index ecf27dff5a55e..af91478e2890d 100644 --- a/src/overmap_ui.cpp +++ b/src/overmap_ui.cpp @@ -1060,6 +1060,9 @@ static void draw_om_sidebar( oter.get_rotation() ); mvwprintz( wbar, point( 1, ++lines ), c_white, "oter_type: %s", oter.get_type_id().str() ); + // tileset ids come with a prefix that must be stripped + mvwprintz( wbar, point( 1, ++lines ), c_white, + "tileset id: '%s'", oter.get_tileset_id( center_vision ).substr( 3 ) ); std::vector predecessors = overmap_buffer.predecessors( center ); if( !predecessors.empty() ) { mvwprintz( wbar, point( 1, ++lines ), c_white, "predecessors:" );