diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index 23c24d134a..70b1ce92bd 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -525,16 +525,16 @@ protected: for (OverflowSafeInt64 datapoint : this->GetDataSetRange(dataset)) { if (datapoint != INVALID_DATAPOINT) { /* - * Check whether we need to reduce the 'accuracy' of the - * datapoint value and the highest value to split overflows. - * And when 'drawing' 'one million' or 'one million and one' - * there is no significant difference, so the least - * significant bits can just be removed. - * - * If there are more bits needed than would fit in a 32 bits - * integer, so at about 31 bits because of the sign bit, the - * least significant bits are removed. - */ + * Check whether we need to reduce the 'accuracy' of the + * datapoint value and the highest value to split overflows. + * And when 'drawing' 'one million' or 'one million and one' + * there is no significant difference, so the least + * significant bits can just be removed. + * + * If there are more bits needed than would fit in a 32 bits + * integer, so at about 31 bits because of the sign bit, the + * least significant bits are removed. + */ int mult_range = FindLastBit(x_axis_offset) + FindLastBit(abs(datapoint)); int reduce_range = std::max(mult_range - 31, 0); diff --git a/src/newgrf_commons.h b/src/newgrf_commons.h index 47ff3115a8..0719d9948d 100644 --- a/src/newgrf_commons.h +++ b/src/newgrf_commons.h @@ -438,7 +438,7 @@ struct VariableGRFFileProps : GRFFilePropsBase { * Set the SpriteGroup at the specified index. * @param index Index to set. * @param spritegroup SpriteGroup to set. - */ + */ void SetSpriteGroup(Tkey index, const SpriteGroup *spritegroup) { auto it = std::ranges::lower_bound(this->spritegroups, index, std::less{}, &ValueType::first); diff --git a/src/provider_manager.h b/src/provider_manager.h index 44caa03963..5ab398de34 100644 --- a/src/provider_manager.h +++ b/src/provider_manager.h @@ -40,9 +40,9 @@ public: } /** - * Get the currently known sound loaders. - * @return The known sound loaders. - */ + * Get the currently known providers. + * @return The known providers. + */ static std::vector &GetProviders() { static std::vector providers{}; diff --git a/src/script/api/script_story_page.hpp b/src/script/api/script_story_page.hpp index 2a6391a711..f5fb408464 100644 --- a/src/script/api/script_story_page.hpp +++ b/src/script/api/script_story_page.hpp @@ -317,10 +317,10 @@ public: static bool IsValidStoryPageButtonColour(StoryPageButtonColour colour); /** - * Check whether this is a valid story page button flag. - * @param flags The StoryPageButtonFlags to check. - * @return True if and only if this story page button flag is valid. - */ + * Check whether this is a valid story page button flag. + * @param flags The StoryPageButtonFlags to check. + * @return True if and only if this story page button flag is valid. + */ static bool IsValidStoryPageButtonFlags(StoryPageButtonFlags flags); /** diff --git a/src/script/api/script_vehiclelist.hpp b/src/script/api/script_vehiclelist.hpp index a6b7330626..6ac972d178 100644 --- a/src/script/api/script_vehiclelist.hpp +++ b/src/script/api/script_vehiclelist.hpp @@ -73,8 +73,8 @@ public: ScriptVehicleList_Station(StationID station_id, ScriptVehicle::VehicleType vehicle_type); #else /** - * The constructor wrapper from Squirrel. - */ + * The constructor wrapper from Squirrel. + */ ScriptVehicleList_Station(HSQUIRRELVM vm); #endif /* DOXYGEN_API */ }; diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 677c81ba8e..a28153602f 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -899,8 +899,8 @@ static CommandCost CheckFlatLandRailStation(TileIndex tile_cur, TileIndex north_ } /* if station is set, then we have special handling to allow building on top of already existing stations. - * so station points to StationID::Invalid() if we can build on any station. - * Or it points to a station if we're only allowed to build on exactly that station. */ + * so station points to StationID::Invalid() if we can build on any station. + * Or it points to a station if we're only allowed to build on exactly that station. */ if (station != nullptr && IsTileType(tile_cur, MP_STATION)) { if (!IsRailStation(tile_cur)) { return ClearTile_Station(tile_cur, DoCommandFlag::Auto); // get error message @@ -1043,7 +1043,7 @@ static CommandCost CheckFlatLandRoadStop(TileIndex cur_tile, int &allowed_z, DoC if (Company::IsValidID(tram_owner) && (!_settings_game.construction.road_stop_on_competitor_road || /* Disallow breaking end-of-line of someone else - * so trams can still reverse on this tile. */ + * so trams can still reverse on this tile. */ HasExactlyOneBit(GetRoadBits(cur_tile, RTT_TRAM)))) { ret = CheckOwnership(tram_owner); if (ret.Failed()) return ret;