Revert "refactor: Optimize terrain rendering and zooming performance"

This reverts commit ae26d93432.
This commit is contained in:
Kacper Kostka
2025-04-02 12:28:54 +02:00
parent ae26d93432
commit f9669c9871
4 changed files with 16 additions and 55 deletions

View File

@@ -182,7 +182,6 @@ function isWater(x, y) {
// Get terrain type at a position
function getTerrainType(x, y) {
// Convert world coordinates to terrain grid coordinates
// Use consistent rounding to prevent shaking
const gridX = Math.floor((x + 2000) / 10);
const gridY = Math.floor((y + 2000) / 10);