Debug: Add NewGRF inspector support for road stops

This commit is contained in:
Jonathan G Rennison
2022-02-14 00:30:49 +00:00
parent a69eba31fe
commit 66db1863f2
4 changed files with 90 additions and 12 deletions

View File

@@ -2247,6 +2247,8 @@ CommandCost RemoveRoadWaypointStop(TileIndex tile, DoCommandFlag flags)
uint specindex = GetCustomRoadStopSpecIndex(tile);
DeleteNewGRFInspectWindow(GSF_ROADSTOPS, tile);
DoClearSquare(tile);
wp->rect.AfterRemoveTile(wp, tile);
@@ -2341,6 +2343,8 @@ CommandCost RemoveRoadStop(TileIndex tile, DoCommandFlag flags)
uint specindex = GetCustomRoadStopSpecIndex(tile);
DeleteNewGRFInspectWindow(GSF_ROADSTOPS, tile);
if (IsDriveThroughStopTile(tile)) {
/* Clears the tile for us */
cur_stop->ClearDriveThrough();