Skip to content

Commit b92553c

Browse files
Patch
1 parent 9bde6d7 commit b92553c

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

common/src/main/java/xyz/jpenilla/squaremap/common/config/Config.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ private static void internalWebServerSettings() {
8080

8181
public static boolean UI_COORDINATES_ENABLED = true;
8282
public static boolean UI_LINK_ENABLED = true;
83-
public static String UI_SIDEBAR_PINNED = "unpinned";
83+
public static String UI_SIDEBAR_PINNED = "pinned";
8484

8585
private static void uiSettings() {
8686
UI_COORDINATES_ENABLED = config.getBoolean("settings.ui.coordinates.enabled", UI_COORDINATES_ENABLED);

web/src/js/FogOfWar.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ export const FogOfWar = L.Layer.extend({
4747
// Clear circles around each player (flashlight effect)
4848
this._ctx.globalCompositeOperation = "destination-out";
4949

50-
const radius = 80; // pixels - adjust for flashlight size
50+
// Scale radius based on zoom level
51+
const zoom = this._map.getZoom();
52+
const baseRadius = 80; // base radius at zoom level 0
53+
const radius = baseRadius * Math.pow(2, zoom);
5154

5255
if (S.playerList.markers) {
5356
S.playerList.markers.forEach((marker, uuid) => {

0 commit comments

Comments
 (0)