diff options
author | SamuXarick <43006711+SamuXarick@users.noreply.github.com> | 2021-01-18 15:54:57 +0000 |
---|---|---|
committer | Loïc Guilloux <glx22@users.noreply.github.com> | 2021-02-13 19:18:41 +0100 |
commit | 36ab9c64efe8097b652d5fdee29dc8794a8a1b38 (patch) | |
tree | e3f413370663851640815205204659759a30ae7c /src | |
parent | d9df20d102c68cf7e2d7655b1006a868f5538d68 (diff) | |
download | openttd-36ab9c64efe8097b652d5fdee29dc8794a8a1b38.tar.xz |
Fix: Desert/rainforest data coordinate 'y' is off by 1 when their 'x' coordinate is negative
Diffstat (limited to 'src')
-rw-r--r-- | src/table/genland.h | 136 |
1 files changed, 68 insertions, 68 deletions
diff --git a/src/table/genland.h b/src/table/genland.h index 53801e2f6..7bc6294ec 100644 --- a/src/table/genland.h +++ b/src/table/genland.h @@ -10,121 +10,121 @@ #define M(x, y) {x, y} static const TileIndexDiffC _make_desert_or_rainforest_data[] = { - M(-5, -6), - M(-4, -6), - M(-3, -6), - M(-2, -6), - M(-1, -6), + M(-5, -5), + M(-4, -5), + M(-3, -5), + M(-2, -5), + M(-1, -5), M( 0, -5), M( 1, -5), M( 2, -5), M( 3, -5), M( 4, -5), M( 5, -5), - M(-5, -5), - M(-4, -5), - M(-3, -5), - M(-2, -5), - M(-1, -5), + M(-5, -4), + M(-4, -4), + M(-3, -4), + M(-2, -4), + M(-1, -4), M( 0, -4), M( 1, -4), M( 2, -4), M( 3, -4), M( 4, -4), M( 5, -4), - M(-5, -4), - M(-4, -4), - M(-3, -4), - M(-2, -4), - M(-1, -4), + M(-5, -3), + M(-4, -3), + M(-3, -3), + M(-2, -3), + M(-1, -3), M( 0, -3), M( 1, -3), M( 2, -3), M( 3, -3), M( 4, -3), M( 5, -3), - M(-5, -3), - M(-4, -3), - M(-3, -3), - M(-2, -3), - M(-1, -3), + M(-5, -2), + M(-4, -2), + M(-3, -2), + M(-2, -2), + M(-1, -2), M( 0, -2), M( 1, -2), M( 2, -2), M( 3, -2), M( 4, -2), M( 5, -2), - M(-5, -2), - M(-4, -2), - M(-3, -2), - M(-2, -2), - M(-1, -2), + M(-5, -1), + M(-4, -1), + M(-3, -1), + M(-2, -1), + M(-1, -1), M( 0, -1), M( 1, -1), M( 2, -1), M( 3, -1), M( 4, -1), M( 5, -1), - M(-5, -1), - M(-4, -1), - M(-3, -1), - M(-2, -1), - M(-1, -1), + M(-5, 0), + M(-4, 0), + M(-3, 0), + M(-2, 0), + M(-1, 0), M( 0, 0), M( 1, 0), M( 2, 0), M( 3, 0), M( 4, 0), M( 5, 0), - M(-5, 0), - M(-4, 0), - M(-3, 0), - M(-2, 0), - M(-1, 0), + M(-5, 1), + M(-4, 1), + M(-3, 1), + M(-2, 1), + M(-1, 1), M( 0, 1), M( 1, 1), M( 2, 1), M( 3, 1), M( 4, 1), M( 5, 1), - M(-5, 1), - M(-4, 1), - M(-3, 1), - M(-2, 1), - M(-1, 1), + M(-5, 2), + M(-4, 2), + M(-3, 2), + M(-2, 2), + M(-1, 2), M( 0, 2), M( 1, 2), M( 2, 2), M( 3, 2), M( 4, 2), M( 5, 2), - M(-5, 2), - M(-4, 2), - M(-3, 2), - M(-2, 2), - M(-1, 2), + M(-5, 3), + M(-4, 3), + M(-3, 3), + M(-2, 3), + M(-1, 3), M( 0, 3), M( 1, 3), M( 2, 3), M( 3, 3), M( 4, 3), M( 5, 3), - M(-5, 3), - M(-4, 3), - M(-3, 3), - M(-2, 3), - M(-1, 3), + M(-5, 4), + M(-4, 4), + M(-3, 4), + M(-2, 4), + M(-1, 4), M( 0, 4), M( 1, 4), M( 2, 4), M( 3, 4), M( 4, 4), M( 5, 4), - M(-5, 4), - M(-4, 4), - M(-3, 4), - M(-2, 4), - M(-1, 4), + M(-5, 5), + M(-4, 5), + M(-3, 5), + M(-2, 5), + M(-1, 5), M( 0, 5), M( 1, 5), M( 2, 5), @@ -132,31 +132,31 @@ static const TileIndexDiffC _make_desert_or_rainforest_data[] = { M( 4, 5), M( 5, 5), M( 6, -3), - M(-6, -4), - M(-3, 5), - M(-3, -7), - M( 6, -2), M(-6, -3), - M(-2, 5), - M(-2, -7), - M( 6, -1), + M(-3, 6), + M(-3, -6), + M( 6, -2), M(-6, -2), - M(-1, 5), - M(-1, -7), - M( 6, 0), + M(-2, 6), + M(-2, -6), + M( 6, -1), M(-6, -1), + M(-1, 6), + M(-1, -6), + M( 6, 0), + M(-6, 0), M( 0, 6), M( 0, -6), M( 6, 1), - M(-6, 0), + M(-6, 1), M( 1, 6), M( 1, -6), M( 6, 2), - M(-6, 1), + M(-6, 2), M( 2, 6), M( 2, -6), M( 6, 3), - M(-6, 2), + M(-6, 3), M( 3, 6), M( 3, -6) }; |