* Get commercial zone population number. * @param tile Tile of the commercial zone. * @return Population number of the zone. */
| 850 | * @return Population number of the zone. |
| 851 | */ |
| 852 | short Micropolis::getComZonePop(MapTile tile) |
| 853 | { |
| 854 | if (tile == COMCLR) { |
| 855 | return 0; |
| 856 | } |
| 857 | |
| 858 | short CzDen = ((tile - CZB) / 9) % 5 + 1; |
| 859 | return CzDen; |
| 860 | } |
| 861 | |
| 862 | |
| 863 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected