OpenTTD
OpenTTD copied to clipboard
[Bug]: DC_FORCE_CLEAR_TILE water removal path not correctly removing docking tiles
Version of OpenTTD
master
Expected result
DC_FORCE_CLEAR_TILE water removal path removes docking tiles as expected (and also performs related actions such as MarkCanalsAndRiversAroundDirty).
Actual result
DC_FORCE_CLEAR_TILE water removal path does not remove docking tiles as expected (and also doesn't perform related actions such as MarkCanalsAndRiversAroundDirty). This can result in multiplayer desyncs, etc.
Steps to reproduce
- Build an object (with OBJECT_FLAG_AUTOREMOVE) on water next to a dock.
- Remove the object and water by means of a single terraforming operation.
- The station's docking tile cache is now incorrect, this can be verified by using a desync debug level >= 2.
See the savegame for an example: Water Bugs Ltd, 1980-01-28.sav.zip