mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 16:56:36 +00:00
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:
@@ -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],
|
||||
];
|
||||
}
|
||||
// ⌞
|
||||
|
||||
Reference in New Issue
Block a user