Commit c34fbf09 authored by Quentin DRUAULT-AUBIN's avatar Quentin DRUAULT-AUBIN Committed by Paul Jeannot
Browse files

[Data] Fix isShipTouched

parent fcc3e32a
......@@ -374,7 +374,7 @@ public abstract class Game extends SerializableEntity {
List<Coordinate> coord = ship.getListCoord() ;
boolean shipTouched = false ;
for (Coordinate c : coord) {
if (c == mine.getCoord()) {
if (mine.getCoord().getX() == c.getX() && mine.getCoord().getY() == c.getY()) {
shipTouched = true ;
return shipTouched ;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment