From 11e77a9d65972c8e59aefd72419dfcf9036e9f6a Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 23 Sep 2014 00:13:05 +0200 Subject: Allow player movement --- src/model/Map.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/model/Map.cpp') diff --git a/src/model/Map.cpp b/src/model/Map.cpp index 9cbe880..48f5669 100644 --- a/src/model/Map.cpp +++ b/src/model/Map.cpp @@ -45,10 +45,10 @@ std::shared_ptr Map::load(__attribute__((unused)) const std::string &name) } } - std::shared_ptr square(new Entity("square")); - square->move(6, 6); + map->playerEntity.reset(new Entity("square")); + map->playerEntity->moveTo(6, 6); - map->entities.push_back(square); + map->entities.push_back(map->playerEntity); return map; } -- cgit v1.2.3