MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / AfterRemoveRect

Method AfterRemoveRect

src/station.cpp:689–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

687}
688
689bool StationRect::AfterRemoveRect(BaseStation *st, TileArea ta)
690{
691 assert(this->PtInExtendedRect(TileX(ta.tile), TileY(ta.tile)));
692 assert(this->PtInExtendedRect(TileX(ta.tile) + ta.w - 1, TileY(ta.tile) + ta.h - 1));
693
694 bool empty = this->AfterRemoveTile(st, ta.tile);
695 if (ta.w != 1 || ta.h != 1) empty = empty || this->AfterRemoveTile(st, TileAddXY(ta.tile, ta.w - 1, ta.h - 1));
696 return empty;
697}
698
699StationRect& StationRect::operator = (const Rect &src)
700{

Callers 1

RemoveAirportFunction · 0.80

Calls 5

PtInExtendedRectMethod · 0.95
AfterRemoveTileMethod · 0.95
TileXFunction · 0.85
TileYFunction · 0.85
TileAddXYFunction · 0.85

Tested by

no test coverage detected