mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
Codefix: Reorder comments of HasPowerOnRoad/Rail and IsCompatibleRail. (#12813)
This commit is contained in:
parent
d3c7b1015c
commit
a873a952aa
@ -315,9 +315,9 @@ inline const RailTypeInfo *GetRailTypeInfo(RailType railtype)
|
||||
* Checks if an engine of the given RailType can drive on a tile with a given
|
||||
* RailType. This would normally just be an equality check, but for electric
|
||||
* rails (which also support non-electric engines).
|
||||
* @return Whether the engine can drive on this tile.
|
||||
* @param enginetype The RailType of the engine we are considering.
|
||||
* @param tiletype The RailType of the tile we are considering.
|
||||
* @return Whether the engine can drive on this tile.
|
||||
*/
|
||||
inline bool IsCompatibleRail(RailType enginetype, RailType tiletype)
|
||||
{
|
||||
@ -328,9 +328,9 @@ inline bool IsCompatibleRail(RailType enginetype, RailType tiletype)
|
||||
* Checks if an engine of the given RailType got power on a tile with a given
|
||||
* RailType. This would normally just be an equality check, but for electric
|
||||
* rails (which also support non-electric engines).
|
||||
* @return Whether the engine got power on this tile.
|
||||
* @param enginetype The RailType of the engine we are considering.
|
||||
* @param tiletype The RailType of the tile we are considering.
|
||||
* @return Whether the engine got power on this tile.
|
||||
*/
|
||||
inline bool HasPowerOnRail(RailType enginetype, RailType tiletype)
|
||||
{
|
||||
|
@ -235,9 +235,9 @@ inline const RoadTypeInfo *GetRoadTypeInfo(RoadType roadtype)
|
||||
* Checks if an engine of the given RoadType got power on a tile with a given
|
||||
* RoadType. This would normally just be an equality check, but for electrified
|
||||
* roads (which also support non-electric vehicles).
|
||||
* @return Whether the engine got power on this tile.
|
||||
* @param enginetype The RoadType of the engine we are considering.
|
||||
* @param tiletype The RoadType of the tile we are considering.
|
||||
* @return Whether the engine got power on this tile.
|
||||
*/
|
||||
inline bool HasPowerOnRoad(RoadType enginetype, RoadType tiletype)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user