diff --git a/src/fheroes2/editor/editor_interface_panel.cpp b/src/fheroes2/editor/editor_interface_panel.cpp index 638288a8756..20c01091151 100644 --- a/src/fheroes2/editor/editor_interface_panel.cpp +++ b/src/fheroes2/editor/editor_interface_panel.cpp @@ -824,7 +824,7 @@ namespace Interface [type = getSelectedObjectType(), group = getSelectedObjectGroup()]( const int32_t /*tileIndex*/ ) { setCustomCursor( group, type ); } ); return; case AdventureObjectBrush::MINES: - _interface.setCursorUpdater( [this]( const int32_t tileIndex ) { + _interface.setCursorUpdater( [this]( const int32_t /*tileIndex*/ ) { int32_t type = -1; int32_t color = -1; getMineObjectProperties( type, color ); @@ -835,13 +835,6 @@ namespace Interface return; } - if ( world.GetTiles( tileIndex ).GetGround() == Maps::Ground::WATER ) { - // Mines cannot be placed on water. - const fheroes2::Sprite & image = fheroes2::AGG::GetICN( ICN::SPELLS, 0 ); - Cursor::Get().setCustomImage( image, { -image.width() / 2, -image.height() / 2 } ); - return; - } - assert( Maps::getObjectsByGroup( Maps::ObjectGroup::ADVENTURE_MINES ).size() > static_cast( type ) ); // TODO: Implement a function to render also the owner flag after ownership selection is implemented. diff --git a/src/fheroes2/maps/map_format_info.h b/src/fheroes2/maps/map_format_info.h index d06b84fa13b..34a1dcba03e 100644 --- a/src/fheroes2/maps/map_format_info.h +++ b/src/fheroes2/maps/map_format_info.h @@ -182,7 +182,7 @@ namespace Maps::Map_Format uint8_t computerPlayerColors{ 0 }; - // Does this event occur only once? + // Does this event occur more than once? bool isRecurringEvent{ false }; // An artifact to be given as a reward. @@ -222,6 +222,7 @@ namespace Maps::Map_Format uint32_t firstOccurrenceDay{ 0 }; + // Repeat period for the event. 0 value means no repetition. uint32_t repeatPeriodInDays{ 0 }; // Resources to be given as a reward.