File diff r14795:b25ae3d8ae7d → r14796:d039551f7b65
src/station_cmd.cpp
Show inline comments
 
@@ -1413,12 +1413,13 @@ CommandCost RemoveFromRailBaseStation(Ti
 
				}
 
			}
 

	
 
			DoClearSquare(tile);
 
			if (keep_rail) MakeRailNormal(tile, owner, TrackToTrackBits(track), rt);
 

	
 
			st->rect.AfterRemoveTile(st, tile);
 
			AddTrackToSignalBuffer(tile, track, owner);
 
			YapfNotifyTrackLayoutChange(tile, track);
 

	
 
			DeallocateSpecFromStation(st, specindex);
 

	
 
			affected_stations.Include(st);
 
@@ -1439,13 +1440,12 @@ CommandCost RemoveFromRailBaseStation(Ti
 

	
 
	if (quantity == 0) return CMD_ERROR;
 

	
 
	for (T **stp = affected_stations.Begin(); stp != affected_stations.End(); stp++) {
 
		T *st = *stp;
 

	
 
		st->rect.AfterRemoveRect(st, ta);
 
		/* now we need to make the "spanned" area of the railway station smaller
 
		 * if we deleted something at the edges.
 
		 * we also need to adjust train_tile. */
 
		MakeRailStationAreaSmaller(st);
 
		UpdateStationSignCoord(st);