Skip to content

Commit

Permalink
Fix passabilities of objects on map
Browse files Browse the repository at this point in the history
close #1951
close #3750
close #3745
close #1521
close #496
  • Loading branch information
ihhub committed Jun 25, 2021
1 parent 59934c7 commit 1ecc79b
Show file tree
Hide file tree
Showing 7 changed files with 277 additions and 638 deletions.
2 changes: 1 addition & 1 deletion src/fheroes2/game/game_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ int32_t Interface::Basic::GetDimensionDoorDestination( const int32_t from, const
if ( valid ) {
const Maps::Tiles & tile = world.GetTiles( dst );

valid = ( ( spellROI & mp ) && MP2::isClearGroundObject( tile.GetObject() ) && water == world.GetTiles( dst ).isWater() );
valid = ( ( spellROI & mp ) && tile.isClearGround() && water == tile.isWater() );
}

cursor.SetThemes( valid ? ( water ? static_cast<int>( Cursor::CURSOR_HERO_BOAT ) : static_cast<int>( Cursor::CURSOR_HERO_MOVE ) )
Expand Down
Loading

0 comments on commit 1ecc79b

Please sign in to comment.