Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix passabilities of objects on map #3756

Merged
merged 12 commits into from
Jun 30, 2021
Next Next commit
Fix passabilities of objects on map
close #1951
close #3750
close #3745
close #1521
close #496
ihhub committed Jun 25, 2021
commit 1ecc79b384653eb3b998596ac20637babd47367f
2 changes: 1 addition & 1 deletion src/fheroes2/game/game_interface.cpp
Original file line number Diff line number Diff line change
@@ -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 ) )
Loading