fix odd dimension maps (#1389)

## Description:

Remove the last column/row from a map if it has odd dimensions. Odd
dimensions were causing pathing issues when translating between mini map
& regular map.

## 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
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

evan
This commit is contained in:
evanpelle
2025-07-09 12:23:07 -07:00
committed by GitHub
parent 9421327a63
commit 0feb5d29c5
9 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
{
"map": {
"height": 1565,
"num_land_tiles": 2235479,
"height": 1564,
"num_land_tiles": 2234157,
"width": 2500
},
"mini_map": {
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -1,7 +1,7 @@
{
"map": {
"height": 1397,
"num_land_tiles": 980515,
"height": 1396,
"num_land_tiles": 980143,
"width": 2000
},
"mini_map": {
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+3 -3
View File
@@ -1,8 +1,8 @@
{
"map": {
"height": 1273,
"num_land_tiles": 807868,
"width": 1361
"height": 1272,
"num_land_tiles": 806817,
"width": 1360
},
"mini_map": {
"height": 636,
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
{
"map": {
"height": 1477,
"num_land_tiles": 2017096,
"height": 1476,
"num_land_tiles": 2015157,
"width": 2902
},
"mini_map": {
File diff suppressed because one or more lines are too long