Commit 7b733c7
committed
Fix negative city population on load
When cities are loaded, their buildings do not exist yet and therefore do not contribute to total citizens.
This caused an overflow during target_cities weighted vector re-calculation during load.
git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@11890 8aca7d54-2c30-db11-9de9-000461428c891 parent 24dbd4d commit 7b733c7
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1832 | 1832 | | |
1833 | 1833 | | |
1834 | 1834 | | |
| 1835 | + | |
1835 | 1836 | | |
1836 | 1837 | | |
1837 | 1838 | | |
| 1839 | + | |
1838 | 1840 | | |
1839 | 1841 | | |
1840 | 1842 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
484 | | - | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
485 | 492 | | |
486 | 493 | | |
487 | 494 | | |
| |||
0 commit comments