* Handle emigration of commercial zone. * @param pos Position of the commercial zone. * @param pop Population ? * @param value Land value corrected for pollution. */
| 830 | * @param value Land value corrected for pollution. |
| 831 | */ |
| 832 | void Micropolis::doComOut(const Position &pos, int pop, int value) |
| 833 | { |
| 834 | if (pop > 1) { |
| 835 | comPlop(pos, pop - 2, value); |
| 836 | incRateOfGrowth(pos, -8); |
| 837 | return; |
| 838 | } |
| 839 | |
| 840 | if (pop == 1) { |
| 841 | zonePlop(pos, COMBASE); |
| 842 | incRateOfGrowth(pos, -8); |
| 843 | } |
| 844 | } |
| 845 | |
| 846 | |
| 847 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected