diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-05-27 16:17:26 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-05-27 16:17:26 -0400 |
commit | d09144d539f59e76309d4b61ed543bafd1bcb113 (patch) | |
tree | 2e11b0b7a816c018f5bc4971b6693ce8a2aa6817 /src | |
parent | ef77024dfdbcd34ab9deca3013e82cacf751aa54 (diff) | |
download | ether-d09144d539f59e76309d4b61ed543bafd1bcb113.tar.gz ether-d09144d539f59e76309d4b61ed543bafd1bcb113.tar.bz2 ether-d09144d539f59e76309d4b61ed543bafd1bcb113.zip |
fixed movement bug
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 6b09c72..4674579 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
@@ -290,7 +290,7 @@ void processKeys(Map& map, const Input& keystate) | |||
290 | px++; | 290 | px++; |
291 | } | 291 | } |
292 | 292 | ||
293 | if (!(player_x == px && player_y == px)) | 293 | if (!(player_x == px && player_y == py)) |
294 | { | 294 | { |
295 | movePlayer(px, py, map); | 295 | movePlayer(px, py, map); |
296 | } | 296 | } |