Fix railroads dead pixels (#3166)

## Description:

Fix railroads coordinates to remove dead pixels
<img width="281" height="248" alt="image"
src="https://github.com/user-attachments/assets/dca6a954-c28f-44c0-8a5e-a7ad147f5dd2"
/>


## 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
This commit is contained in:
Vivacious Box
2026-02-10 00:07:50 +01:00
committed by GitHub
parent c6c793f6b3
commit 3cd4ffff0c
+13 -13
View File
@@ -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],
];
}
// ⌞