Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1.             if (flags & DC_EXEC) {
  2.                 if (IsCanal(tile) && Company::IsValidID(owner)) {
  3.                     Company::Get(owner)->infrastructure.water--;
  4.                     DirtyCompanyInfrastructureWindows(owner);
  5.                 }
  6.                 bool remove = IsDockingTile(tile);
  7.                 bool canal_on_river = HasTileCanalOnRiver(tile);
  8.                 DoClearSquare(tile);
  9.                 if (canal_on_river) {
  10.                     MakeRiver(tile, Random());
  11.                 } else if (remove) {
  12.                     RemoveDockingTile(tile);
  13.                 }
  14.                 MarkCanalsAndRiversAroundDirty(tile);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement