mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r18389) -Fix: some minor documentation alignment issues
This commit is contained in:
parent
aa40d8e3ad
commit
5c1fdfdd03
|
@ -53,7 +53,7 @@ RoadStop *RoadStop::GetNextRoadStop(const RoadVehicle *v) const
|
||||||
void RoadStop::Leave(RoadVehicle *rv)
|
void RoadStop::Leave(RoadVehicle *rv)
|
||||||
{
|
{
|
||||||
/* Vehicle is leaving a road stop tile, mark bay as free
|
/* Vehicle is leaving a road stop tile, mark bay as free
|
||||||
* For drive-through stops, only do it if the vehicle stopped here */
|
* For drive-through stops, only do it if the vehicle stopped here */
|
||||||
if (IsStandardRoadStopTile(rv->tile) || HasBit(rv->state, RVS_IS_STOPPING)) {
|
if (IsStandardRoadStopTile(rv->tile) || HasBit(rv->state, RVS_IS_STOPPING)) {
|
||||||
this->FreeBay(HasBit(rv->state, RVS_USING_SECOND_BAY));
|
this->FreeBay(HasBit(rv->state, RVS_USING_SECOND_BAY));
|
||||||
ClrBit(rv->state, RVS_IS_STOPPING);
|
ClrBit(rv->state, RVS_IS_STOPPING);
|
||||||
|
@ -70,7 +70,7 @@ bool RoadStop::Enter(RoadVehicle *rv)
|
||||||
{
|
{
|
||||||
if (IsStandardRoadStopTile(this->xy)) {
|
if (IsStandardRoadStopTile(this->xy)) {
|
||||||
/* For normal (non drive-through) road stops
|
/* For normal (non drive-through) road stops
|
||||||
* Check if station is busy or if there are no free bays or whether it is a articulated vehicle. */
|
* Check if station is busy or if there are no free bays or whether it is a articulated vehicle. */
|
||||||
if (this->IsEntranceBusy() || !this->HasFreeBay() || rv->HasArticulatedPart()) return false;
|
if (this->IsEntranceBusy() || !this->HasFreeBay() || rv->HasArticulatedPart()) return false;
|
||||||
|
|
||||||
SetBit(rv->state, RVS_IN_ROAD_STOP);
|
SetBit(rv->state, RVS_IN_ROAD_STOP);
|
||||||
|
|
|
@ -916,7 +916,7 @@ public:
|
||||||
for (const LegendAndColour *tbl = _legend_table[this->map_type]; !tbl->end; ++tbl) {
|
for (const LegendAndColour *tbl = _legend_table[this->map_type]; !tbl->end; ++tbl) {
|
||||||
if (tbl->col_break || i++ >= this->number_of_rows) {
|
if (tbl->col_break || i++ >= this->number_of_rows) {
|
||||||
/* Column break needed, continue at top, COLUMN_WIDTH pixels
|
/* Column break needed, continue at top, COLUMN_WIDTH pixels
|
||||||
* (one "row") to the right. */
|
* (one "row") to the right. */
|
||||||
x += rtl ? -(int)this->column_width : this->column_width;
|
x += rtl ? -(int)this->column_width : this->column_width;
|
||||||
y = y_org;
|
y = y_org;
|
||||||
i = 0;
|
i = 0;
|
||||||
|
|
Loading…
Reference in New Issue