diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-09-23 02:11:11 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-09-23 02:11:11 +0200 |
commit | d41e2dae45e08059e23041f0146b91add0c2cace (patch) | |
tree | 780888633b8a051be868df29fd29c369605ee5e4 /src/rpgedit.cpp | |
parent | 0c3dbabb920f2957ca8c36194ebdeec9f80fefe7 (diff) | |
download | rpgedit-d41e2dae45e08059e23041f0146b91add0c2cace.tar rpgedit-d41e2dae45e08059e23041f0146b91add0c2cace.zip |
Add transitions for entity movement
Diffstat (limited to 'src/rpgedit.cpp')
-rw-r--r-- | src/rpgedit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpgedit.cpp b/src/rpgedit.cpp index c507880..b4fc89e 100644 --- a/src/rpgedit.cpp +++ b/src/rpgedit.cpp @@ -91,8 +91,8 @@ int main(__attribute__((unused)) int argc, __attribute__((unused)) char *argv[]) if (!SDL_TICKS_PASSED(SDL_GetTicks(), lastFrameTicks + MIN_FRAME_DELAY)) continue; - std::pair<float, float> pos = map->getPlayerEntity().getPosition(); - mapView->render(pos.first, pos.second); + Model::Position pos = map->getPlayerEntity().getPosition(); + mapView->render(pos.x, pos.y); lastFrameTicks = ticks; } |