mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 13:10:42 +00:00
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:
@@ -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
@@ -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
@@ -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
Reference in New Issue
Block a user