From 8b4ca336ce68cc17573115dd07eb1bfc6521b298 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 25 Sep 2014 23:33:50 +0200 Subject: Differentiate between int and float positions --- src/view/MapView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/view/MapView.cpp') 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 center, uint64_t time) { SDL_RenderClear(window->getRenderer()); std::pair 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 pos = map->getEntityPosition(entity.get(), time); Model::Direction dir = entity->getDirection(); SDL_Rect src = { -- cgit v1.2.3