TilemapVX: Fix map viewport calculation
This commit is contained in:
parent
fe709b6010
commit
fe6799d00b
|
@ -188,7 +188,7 @@ struct TilemapVXPrivate : public ViewportElement, TileAtlasVX::Reader
|
||||||
{
|
{
|
||||||
int tileOX, tileOY;
|
int tileOX, tileOY;
|
||||||
|
|
||||||
Vec2i offs(offset.x-sceneOffset.x, offset.y-sceneOffset.y);
|
Vec2i offs = offset + sceneGeo.orig;
|
||||||
|
|
||||||
if (offs.x >= 0)
|
if (offs.x >= 0)
|
||||||
tileOX = offs.x / 32;
|
tileOX = offs.x / 32;
|
||||||
|
|
Loading…
Reference in New Issue