1
0
Fork 0

Codefix: Clean up incorrect indentation for multi-line comments. (#14383)

pull/13945/head
Peter Nelson 2025-06-20 19:01:44 +01:00 committed by GitHub
parent a927925996
commit 5766ba51d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 23 additions and 23 deletions

View File

@ -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<uint32_t>(x_axis_offset) + FindLastBit<uint64_t>(abs(datapoint));
int reduce_range = std::max(mult_range - 31, 0);

View File

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

View File

@ -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<TProviderType *> &GetProviders()
{
static std::vector<TProviderType *> providers{};

View File

@ -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);
/**

View File

@ -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 */
};

View File

@ -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;