Advertisement
Guest User

Untitled

a guest
Mar 7th, 2020
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function MainClass::IsRiverTile(tile)
  2. // pfff, finally a solve to detect river
  3. {
  4. if (!AITile.IsWaterTile(tile)) return false;
  5. if (AITile.GetMinHeight(tile) == 0 && AITile.GetMaxHeight(tile) == 0) return false;
  6. if (AIMarine.IsWaterDepotTile(tile)) return false;
  7. if (AIMarine.IsCanalTile(tile)) return false;
  8. if (AIMarine.IsLockTile(tile)) return false;
  9. return true;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement