1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-11 18:20:42 +00:00

Fix the tile coordinates shown in the top left (#208)

This commit is contained in:
Ziemas 2019-11-18 23:42:38 +01:00 committed by Tim Sarbin
parent 908d186fea
commit 9117616b0c

View File

@ -184,9 +184,9 @@ func (v *MapEngineTest) Render(screen *ebiten.Image) {
line := fmt.Sprintf("%d, %d (Tile %d.%d, %d.%d)",
int(math.Ceil(actualX)),
int(math.Ceil(actualY)),
int(math.Ceil(tileX))-curRegion.Rect.Left,
int(math.Floor(tileX))-curRegion.Rect.Left,
subtileX,
int(math.Ceil(tileY))-curRegion.Rect.Top,
int(math.Floor(tileY))-curRegion.Rect.Top,
subtileY,
)