OpenTTD icon indicating copy to clipboard operation
OpenTTD copied to clipboard

[Bug]: DC_FORCE_CLEAR_TILE water removal path not correctly removing docking tiles

Open JGRennison opened this issue 3 years ago • 0 comments

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

  1. Build an object (with OBJECT_FLAG_AUTOREMOVE) on water next to a dock.
  2. Remove the object and water by means of a single terraforming operation.
  3. 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

JGRennison avatar Apr 25 '22 12:04 JGRennison