fix webGL issue that wasn't webGL issue

chromium bug causing random js variables to become NaN
but only as viewed by a certain js source file, not globally
not sure how to even report this bug upstream
This commit is contained in:
Matthias Wirth
2025-03-08 08:35:37 +00:00
parent 01af74d8b7
commit 5d4e2cb307
2 changed files with 7 additions and 5 deletions

View File

@@ -1760,7 +1760,7 @@ PlaneObject.prototype.updateMarker = function(moved) {
this.setMarkerRgb();
const iconRotation = this.shape.noRotate ? 0 : this.rotation;
this.glMarker.set('rotation', iconRotation * Math.PI / 180.0 + mapOrientation);
this.glMarker.set('rotation', iconRotation * Math.PI / 180.0 + g.mapOrientation);
this.glMarker.set('scale', this.scale * Math.max(this.shape.w, this.shape.h) / glIconSize);
this.glMarker.set('sx', getSpriteX(this.shape) * glIconSize);
this.glMarker.set('sy', getSpriteY(this.shape) * glIconSize);