* Compute evaluation of a commercial zone. * @param traf Result if traffic attempt. * @return Evaluation value of the commercial zone. */
| 881 | * @return Evaluation value of the commercial zone. |
| 882 | */ |
| 883 | short Micropolis::evalCom(const Position &pos, int traf) |
| 884 | { |
| 885 | short Value; |
| 886 | |
| 887 | if (traf < 0) { |
| 888 | return -3000; |
| 889 | } |
| 890 | |
| 891 | Value = comRateMap.worldGet(pos.posX, pos.posY); |
| 892 | |
| 893 | return Value; |
| 894 | } |
| 895 | |
| 896 | |
| 897 | /** |