Old revision #pg37zx0bm | New revision #pt53yaqwv | ||
---|---|---|---|
10 | if (GetWaterClass(tile) == WATER_CLASS_CANAL) Company::Get(old_owner)->infrastructure.water--; | 10 | if (GetWaterClass(tile) == WATER_CLASS_CANAL) Company::Get(old_owner)->infrastructure.water--; |
11 | } | 11 | } |
12 | if (new_owner != INVALID_OWNER) { | 12 | if (new_owner != INVALID_OWNER) { |
13 | if (is_lock_middle) | 13 | if (is_lock_middle) { |
14 | | 14 | Company::Get(new_owner)->infrastructure.water += 3 * LOCK_DEPOT_TILE_FACTOR; // Lock has three parts. |
15 | | 15 | if (GetWaterClass(tile) == WATER_CLASS_CANAL) Company::Get(new_owner)->infrastructure.water++; |
16 | } | 16 | } |
17 | /* Only subtract from the old owner here if the new owner is valid, | 17 | /* Only subtract from the old owner here if the new owner is valid, |
18 | * otherwise we clear ship depots and canal water below. */ | 18 | * otherwise we clear ship depots and canal water below. */ |