Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (flags & DC_EXEC) {
- if (IsCanal(tile) && Company::IsValidID(owner)) {
- Company::Get(owner)->infrastructure.water--;
- DirtyCompanyInfrastructureWindows(owner);
- }
- bool remove = IsDockingTile(tile);
- bool canal_on_river = HasTileCanalOnRiver(tile);
- DoClearSquare(tile);
- if (canal_on_river) {
- MakeRiver(tile, Random());
- } else if (remove) {
- RemoveDockingTile(tile);
- }
- MarkCanalsAndRiversAroundDirty(tile);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement