From 3cd4ffff0c2a5a505bcb01d0205b3c87b08b271e Mon Sep 17 00:00:00 2001 From: Vivacious Box Date: Tue, 10 Feb 2026 00:07:50 +0100 Subject: [PATCH] Fix railroads dead pixels (#3166) ## Description: Fix railroads coordinates to remove dead pixels image ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: Mr. Box --- src/client/graphics/layers/RailroadSprites.ts | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/client/graphics/layers/RailroadSprites.ts b/src/client/graphics/layers/RailroadSprites.ts index d7a1b1097..8572ae68f 100644 --- a/src/client/graphics/layers/RailroadSprites.ts +++ b/src/client/graphics/layers/RailroadSprites.ts @@ -40,9 +40,9 @@ function horizontalRailroadRects(): number[][] { function verticalRailroadRects(): number[][] { // x/y/w/h const rects = [ - [-1, -2, 1, 2], - [1, -2, 1, 2], - [0, -1, 1, 1], + [-1, -1, 1, 2], + [1, -1, 1, 2], + [0, 0, 1, 1], ]; return rects; } @@ -50,9 +50,9 @@ function verticalRailroadRects(): number[][] { function topRightRailroadCornerRects(): number[][] { // x/y/w/h const rects = [ - [-1, -2, 1, 2], + [-1, -1, 1, 1], [0, -1, 1, 2], - [1, -2, 1, 4], + [1, -1, 1, 3], ]; return rects; } @@ -60,9 +60,9 @@ function topRightRailroadCornerRects(): number[][] { function topLeftRailroadCornerRects(): number[][] { // x/y/w/h const rects = [ - [-1, -2, 1, 4], + [-1, -1, 1, 3], [0, -1, 1, 2], - [1, -2, 1, 2], + [1, -1, 1, 1], ]; return rects; } @@ -70,9 +70,9 @@ function topLeftRailroadCornerRects(): number[][] { function bottomRightRailroadCornerRects(): number[][] { // x/y/w/h const rects = [ - [-1, 1, 1, 2], + [-1, 1, 1, 1], [0, 0, 1, 2], - [1, -1, 1, 4], + [1, -1, 1, 3], ]; return rects; } @@ -80,9 +80,9 @@ function bottomRightRailroadCornerRects(): number[][] { function bottomLeftRailroadCornerRects(): number[][] { // x/y/w/h const rects = [ - [-1, -1, 1, 4], + [-1, -1, 1, 3], [0, 0, 1, 2], - [1, 1, 1, 2], + [1, 1, 1, 1], ]; return rects; } @@ -109,8 +109,8 @@ function horizontalBridge(): number[][] { function verticalBridge(): number[][] { // x/y/w/h return [ - [-2, -2, 1, 3], - [2, -2, 1, 3], + [-2, -1, 1, 3], + [2, -1, 1, 3], ]; } // ⌞