Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function MainClass::IsRiverTile(tile)
- // pfff, finally a solve to detect river
- {
- if (!AITile.IsWaterTile(tile)) return false;
- if (AITile.GetMinHeight(tile) == 0 && AITile.GetMaxHeight(tile) == 0) return false;
- if (AIMarine.IsWaterDepotTile(tile)) return false;
- if (AIMarine.IsCanalTile(tile)) return false;
- if (AIMarine.IsLockTile(tile)) return false;
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement