mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-07 09:07:00 -05:00
Fix the tile coordinates shown in the top left (#208)
This commit is contained in:
parent
908d186fea
commit
9117616b0c
@ -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,
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user