Old revision #pun0ehlix | New revision #pagzyrmdn | ||
---|---|---|---|
6 | if (IsLock(tile) && GetLockPart(tile) == LOCK_PART_MIDDLE) { | 6 | if (IsLock(tile) && GetLockPart(tile) == LOCK_PART_MIDDLE) { |
7 | /* The middle tile specifies the owner of the lock. */ | 7 | /* The middle tile specifies the owner of the lock. */ |
8 | c->infrastructure.water += 3 * LOCK_DEPOT_TILE_FACTOR; // the middle tile specifies the owner of the | 8 | c->infrastructure.water += 3 * LOCK_DEPOT_TILE_FACTOR; // the middle tile specifies the owner of the |
9 | + if (GetWaterClass(tile) != WATER_CLASS_ | 9 | + if (GetWaterClass(tile) != WATER_CLASS_RIVER) { |
10 | + c->infrastructure.water++; | 10 | + c->infrastructure.water++; |
11 | + } | 11 | + } |
12 | break; // do not count the middle tile as canal | 12 | break; // do not count the middle tile as canal |