aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/Map.java
diff options
context:
space:
mode:
authormafaldo <mafaldo@heavyhammer.home>2018-02-10 15:12:05 +0100
committermafaldo <mafaldo@heavyhammer.home>2018-02-10 15:12:05 +0100
commit0e8ebd8803718b37e9141649c6d8eb7036ec85ed (patch)
tree5b952c80b9d0616cf0bc7ba4243561352482e957 /src/main/java/Map.java
parentSwitch to gradle, update gitignore (diff)
downloadSubconscious-old-0e8ebd8803718b37e9141649c6d8eb7036ec85ed.tar.gz
Subconscious-old-0e8ebd8803718b37e9141649c6d8eb7036ec85ed.zip
Implement actor, create player
Diffstat (limited to 'src/main/java/Map.java')
-rw-r--r--src/main/java/Map.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/Map.java b/src/main/java/Map.java
index 031e922..db686f6 100644
--- a/src/main/java/Map.java
+++ b/src/main/java/Map.java
@@ -23,6 +23,6 @@ public class Map {
/* accessors */
public Tile getTile(int x, int y) {
- return this.grid[y * this.size.width + y];
+ return this.grid[y * this.size.width + x];
}
}