Codefix: Reorder comments of HasPowerOnRoad/Rail and IsCompatibleRail. (#12813)

This commit is contained in:
Joan Josep 2024-06-25 23:22:53 +02:00 committed by GitHub
parent d3c7b1015c
commit a873a952aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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)
{

View File

@ -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)
{