mirror of
https://github.com/OpenTTD/OpenTTD
synced 2025-12-10 06:52:05 +01:00
Codefix: Clean up incorrect indentation for multi-line comments. (#14383)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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{};
|
||||
|
||||
@@ -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);
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 */
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user