From 3897f5b7172a48ca3f878262205a7300de8055a6 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Mon, 22 Feb 2016 16:22:09 +0100 Subject: Fix neighbor coordinates calculation --- src/ch/epfl/xblast/Cell.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ch/epfl/xblast/Cell.java b/src/ch/epfl/xblast/Cell.java index 7673f4f..813bd5f 100644 --- a/src/ch/epfl/xblast/Cell.java +++ b/src/ch/epfl/xblast/Cell.java @@ -162,9 +162,9 @@ public final class Cell { case S: return new Cell(this.x, this.y + 1); case E: - return new Cell(this.x - 1, this.y); - case W: return new Cell(this.x + 1, this.y); + case W: + return new Cell(this.x - 1, this.y); default: return null; } -- cgit v1.2.3