FS#6277 - Canal on River

Attached to Project: OpenTTD
Opened by Ricardo (Samu) - Tuesday, 07 April 2015, 15:02 GMT
Type Patch
Category Core
Status New
Assigned To No-one
Operating System Windows
Severity Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


This patch restores rivers when demolishing canals that have been built on river tiles. Demolishing them again will actually clear the river tiles.

- A behaviour was changed: Leveling land with rivers or lakes will not immediately demolish them, they must be cleared first.
- A better error message was added to complement the behaviour change.
- Store canal on river bit flag on m1 bit 7 for convenience.
- Moved completed industry flag from m1 bit 7 to m1 bit 4, and added a conversion for old savegames.
- Updated the documentation regarding these changes.
This task depends upon

Comment by Ricardo (Samu) - Wednesday, 08 April 2015, 18:06 GMT
There was a problem with v5, I was setting canal on river too early for industries, and that was causing assertion. This fixes it.