summaryrefslogtreecommitdiffstats
path: root/src/view/MapView.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-09-23 00:13:05 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-09-23 00:13:05 +0200
commit11e77a9d65972c8e59aefd72419dfcf9036e9f6a (patch)
tree03288809e9a592849e881d6f3baae2eb41bee5cb /src/view/MapView.cpp
parentc9b41bc1022c75ac6da84f4fa503dd8231a96cf2 (diff)
downloadrpgedit-11e77a9d65972c8e59aefd72419dfcf9036e9f6a.tar
rpgedit-11e77a9d65972c8e59aefd72419dfcf9036e9f6a.zip
Allow player movement
Diffstat (limited to 'src/view/MapView.cpp')
-rw-r--r--src/view/MapView.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/MapView.cpp b/src/view/MapView.cpp
index 788cee9..33414ce 100644
--- a/src/view/MapView.cpp
+++ b/src/view/MapView.cpp
@@ -121,7 +121,7 @@ void MapView::render(float centerX, float centerY) {
for (const std::shared_ptr<Model::Entity> &entity : map->getEntities()) {
std::pair<float, float> pos = entity->getPosition();
- Direction dir = entity->getDirection();
+ Model::Direction dir = entity->getDirection();
SDL_Rect src = {
.x = 16*dir,