diff --git a/src/control/MapContext.hpp b/src/control/MapContext.hpp index 0612dd3..37a38ea 100644 --- a/src/control/MapContext.hpp +++ b/src/control/MapContext.hpp @@ -58,10 +58,6 @@ public: Model::Position getViewPosition(uint64_t time) { return map->getPlayerEntity()->getPosition(time); } - - std::shared_ptr initView(const std::shared_ptr &window) { - return std::make_shared(window, map); - } }; } diff --git a/src/control/RPGEdit.cpp b/src/control/RPGEdit.cpp index e8d71a6..31998b2 100644 --- a/src/control/RPGEdit.cpp +++ b/src/control/RPGEdit.cpp @@ -107,7 +107,7 @@ void RPGEdit::run() { ctx = std::make_shared(&eventBus, &inputHandler, map); window = std::make_shared(); - mapView = ctx->initView(window); + mapView = std::make_shared(window, map); eventThread = std::thread([this] { eventLoop(); });