Skip to content

Commit

Permalink
Fix boat check
Browse files Browse the repository at this point in the history
  • Loading branch information
idshibanov committed Sep 8, 2020
1 parent 5aa1683 commit 7bc5f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fheroes2/maps/maps_tiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1897,7 +1897,7 @@ bool Maps::Tiles::validateWaterRules( bool fromWater ) const

// if we're not in water but tile is; allow movement in two cases
if ( tileIsWater )
return mp2_object == MP2::OBJ_SHIPWRECK || mp2_object == MP2::OBJ_HEROES;
return mp2_object == MP2::OBJ_SHIPWRECK || mp2_object == MP2::OBJ_HEROES || mp2_object == MP2::OBJ_BOAT;

return true;
}
Expand Down

0 comments on commit 7bc5f9c

Please sign in to comment.