I figured I might as well replace the value to make it calculate the Y distance as well. Though after doing this, the test started failing, so it was either done this for a reason or I have uncovered some bug which was hidden.
Test project /home/user/widelands/build
Start 1: test_economy
1/3 Test #1: test_economy .....................***Failed 0.03 sec
Running 21 test cases...
/home/user/widelands/src/economy/test/test_routing.cc(624): error in "priced_routing": check route.has_chain(chain) failed
lastserial: 0
lastserial: 0
lastserial: 0
I figured I might as well replace the value to make it calculate the Y distance as well. Though after doing this, the test started failing, so it was either done this for a reason or I have uncovered some bug which was hidden.
Test project /home/user/ widelands/ build ....... ....... ***Failed 0.03 sec widelands/ src/economy/ test/test_ routing. cc(624) : error in "priced_routing": check route.has_ chain(chain) failed
Start 1: test_economy
1/3 Test #1: test_economy .......
Running 21 test cases...
/home/user/
lastserial: 0
lastserial: 0
lastserial: 0
*** 1 failure detected in test suite "Economy"
Start 2: test_io_filesystem scripting scripting ......... Passed 0.01 sec
2/3 Test #2: test_io_filesystem ............... Passed 0.01 sec
Start 3: test_widelands_
3/3 Test #3: test_widelands_