summaryrefslogtreecommitdiffstats
path: root/src/view
diff options
context:
space:
mode:
Diffstat (limited to 'src/view')
-rw-r--r--src/view/MapView.cpp4
-rw-r--r--src/view/MapView.hpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/view/MapView.cpp b/src/view/MapView.cpp
index 4a6e552..287fc87 100644
--- a/src/view/MapView.cpp
+++ b/src/view/MapView.cpp
@@ -94,7 +94,7 @@ void MapView::clearEntities() {
entitySprites.clear();
}
-void MapView::render(const Model::Map *map, Model::Position center, uint64_t time) {
+void MapView::render(const Model::Map *map, Model::Position<float> center, uint64_t time) {
SDL_RenderClear(window->getRenderer());
std::pair<int, int> viewport = window->getViewport();
@@ -137,7 +137,7 @@ void MapView::render(const Model::Map *map, Model::Position center, uint64_t tim
}
for (auto &entity : map->getEntities()) {
- Model::Position pos = map->getEntityPosition(entity.get(), time);
+ Model::Position<float> pos = map->getEntityPosition(entity.get(), time);
Model::Direction dir = entity->getDirection();
SDL_Rect src = {
diff --git a/src/view/MapView.hpp b/src/view/MapView.hpp
index e813950..9a27328 100644
--- a/src/view/MapView.hpp
+++ b/src/view/MapView.hpp
@@ -58,7 +58,7 @@ public:
void clear();
- void render(const Model::Map *map, Model::Position center, uint64_t time);
+ void render(const Model::Map *map, Model::Position<float> center, uint64_t time);
};
}