mirror of https://github.com/OpenTTD/OpenTTD
(svn r19356) -Fix: Whitespace.
parent
ef52e21c75
commit
dc79bf4c01
|
@ -77,7 +77,7 @@ struct GroundVehicle : public SpecializedVehicle<T, Type> {
|
||||||
void CargoChanged();
|
void CargoChanged();
|
||||||
int GetAcceleration() const;
|
int GetAcceleration() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculates the total slope resistance for this vehicle.
|
* Calculates the total slope resistance for this vehicle.
|
||||||
* @return Slope resistance.
|
* @return Slope resistance.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1487,12 +1487,12 @@ static void SwapTrainFlags(uint16 *swap_flag1, uint16 *swap_flag2)
|
||||||
SetBit(*swap_flag2, GVF_GOINGDOWN_BIT);
|
SetBit(*swap_flag2, GVF_GOINGDOWN_BIT);
|
||||||
} else if (HasBit(flag1, GVF_GOINGDOWN_BIT)) {
|
} else if (HasBit(flag1, GVF_GOINGDOWN_BIT)) {
|
||||||
SetBit(*swap_flag2, GVF_GOINGUP_BIT);
|
SetBit(*swap_flag2, GVF_GOINGUP_BIT);
|
||||||
}
|
}
|
||||||
if (HasBit(flag2, GVF_GOINGUP_BIT)) {
|
if (HasBit(flag2, GVF_GOINGUP_BIT)) {
|
||||||
SetBit(*swap_flag1, GVF_GOINGDOWN_BIT);
|
SetBit(*swap_flag1, GVF_GOINGDOWN_BIT);
|
||||||
} else if (HasBit(flag2, GVF_GOINGDOWN_BIT)) {
|
} else if (HasBit(flag2, GVF_GOINGDOWN_BIT)) {
|
||||||
SetBit(*swap_flag1, GVF_GOINGUP_BIT);
|
SetBit(*swap_flag1, GVF_GOINGUP_BIT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ReverseTrainSwapVeh(Train *v, int l, int r)
|
static void ReverseTrainSwapVeh(Train *v, int l, int r)
|
||||||
|
|
Loading…
Reference in New Issue