TilemapVX: Fix map viewport calculation

This commit is contained in:
Jonas Kulla 2015-07-10 04:58:28 +02:00
parent fe709b6010
commit fe6799d00b
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ struct TilemapVXPrivate : public ViewportElement, TileAtlasVX::Reader
{
int tileOX, tileOY;
Vec2i offs(offset.x-sceneOffset.x, offset.y-sceneOffset.y);
Vec2i offs = offset + sceneGeo.orig;
if (offs.x >= 0)
tileOX = offs.x / 32;