* Leave the road stop * @param rv the vehicle that leaves the stop */
| 201 | * @param rv the vehicle that leaves the stop |
| 202 | */ |
| 203 | void RoadStop::Leave(RoadVehicle *rv) |
| 204 | { |
| 205 | if (IsBayRoadStopTile(rv->tile)) { |
| 206 | /* Vehicle is leaving a road stop tile, mark bay as free */ |
| 207 | this->FreeBay(HasBit(rv->state, RVS_USING_SECOND_BAY)); |
| 208 | this->SetEntranceBusy(false); |
| 209 | } else { |
| 210 | /* Otherwise just leave the drive through's entry cache. */ |
| 211 | this->GetEntry(DirToDiagDir(rv->direction)).Leave(rv); |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | /** |
| 216 | * Enter the road stop |
no test coverage detected