* Check the integrity of the data in this struct. * @param rs the roadstop this entry is part of */
| 356 | * @param rs the roadstop this entry is part of |
| 357 | */ |
| 358 | void RoadStop::Entry::CheckIntegrity(const RoadStop *rs) const |
| 359 | { |
| 360 | if (!rs->status.Test(RoadStopStatusFlag::BaseEntry)) return; |
| 361 | |
| 362 | /* The tile 'before' the road stop must not be part of this 'line' */ |
| 363 | assert(IsDriveThroughStopTile(rs->xy)); |
| 364 | assert(!IsDriveThroughRoadStopContinuation(rs->xy, rs->xy - TileOffsByAxis(GetDriveThroughStopAxis(rs->xy)))); |
| 365 | |
| 366 | Entry temp; |
| 367 | temp.Rebuild(rs, &rs->entries->east == this); |
| 368 | if (temp.length != this->length || temp.occupied != this->occupied) NOT_REACHED(); |
| 369 | } |
no test coverage detected