Cleanup: missing spaces before continuation * in some comments

This commit is contained in:
Rubidium 2023-11-01 21:46:33 +01:00 committed by rubidium42
parent c687b59efc
commit c6411168d8
25 changed files with 104 additions and 104 deletions

View File

@ -457,7 +457,7 @@ void IConsoleGUIPrint(TextColour colour_code, const std::string &str)
* all lines in the buffer are aged by one. When a line exceeds both the maximum position * all lines in the buffer are aged by one. When a line exceeds both the maximum position
* and also the maximum age, it gets removed. * and also the maximum age, it gets removed.
* @return true if any lines were removed * @return true if any lines were removed
*/ */
static bool TruncateBuffer() static bool TruncateBuffer()
{ {
bool need_truncation = false; bool need_truncation = false;

View File

@ -324,7 +324,7 @@ static inline T ROR(const T x, const uint8_t n)
* Iterable ensemble of each set bit in a value. * Iterable ensemble of each set bit in a value.
* @tparam Tbitpos Type of the position variable. * @tparam Tbitpos Type of the position variable.
* @tparam Tbitset Type of the bitset value. * @tparam Tbitset Type of the bitset value.
*/ */
template <typename Tbitpos = uint, typename Tbitset = uint> template <typename Tbitpos = uint, typename Tbitset = uint>
struct SetBitIterator { struct SetBitIterator {
struct Iterator { struct Iterator {

View File

@ -719,7 +719,7 @@ void ScanScenarios()
/** /**
* Constructs FiosNumberedSaveName. Initial number is the most recent save, or -1 if not found. * Constructs FiosNumberedSaveName. Initial number is the most recent save, or -1 if not found.
* @param prefix The prefix to use to generate a filename. * @param prefix The prefix to use to generate a filename.
*/ */
FiosNumberedSaveName::FiosNumberedSaveName(const std::string &prefix) : prefix(prefix), number(-1) FiosNumberedSaveName::FiosNumberedSaveName(const std::string &prefix) : prefix(prefix), number(-1)
{ {
static std::optional<std::string> _autosave_path; static std::optional<std::string> _autosave_path;
@ -756,7 +756,7 @@ FiosNumberedSaveName::FiosNumberedSaveName(const std::string &prefix) : prefix(p
/** /**
* Generate a savegame name and number according to _settings_client.gui.max_num_autosaves. * Generate a savegame name and number according to _settings_client.gui.max_num_autosaves.
* @return A filename in format "<prefix><number>.sav". * @return A filename in format "<prefix><number>.sav".
*/ */
std::string FiosNumberedSaveName::Filename() std::string FiosNumberedSaveName::Filename()
{ {
if (++this->number >= _settings_client.gui.max_num_autosaves) this->number = 0; if (++this->number >= _settings_client.gui.max_num_autosaves) this->number = 0;
@ -766,7 +766,7 @@ std::string FiosNumberedSaveName::Filename()
/** /**
* Generate an extension for a savegame name. * Generate an extension for a savegame name.
* @return An extension in format "-<prefix>.sav". * @return An extension in format "-<prefix>.sav".
*/ */
std::string FiosNumberedSaveName::Extension() std::string FiosNumberedSaveName::Extension()
{ {
return fmt::format("-{}.sav", this->prefix); return fmt::format("-{}.sav", this->prefix);

View File

@ -1,9 +1,9 @@
/* /*
* This file is part of OpenTTD. * This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>. * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/ */
/** @file framerate_gui.cpp GUI for displaying framerate/game speed information. */ /** @file framerate_gui.cpp GUI for displaying framerate/game speed information. */

View File

@ -1,9 +1,9 @@
/* /*
* This file is part of OpenTTD. * This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>. * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/ */
/** @file framerate_type.h /** @file framerate_type.h
* Types for recording game performance data. * Types for recording game performance data.

View File

@ -1,9 +1,9 @@
/* /*
* This file is part of OpenTTD. * This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>. * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @file midi.h Declarations for MIDI data */ /* @file midi.h Declarations for MIDI data */

View File

@ -1,9 +1,9 @@
/* /*
* This file is part of OpenTTD. * This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>. * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @file midifile.cpp Parser for standard MIDI files */ /* @file midifile.cpp Parser for standard MIDI files */

View File

@ -1,9 +1,9 @@
/* /*
* This file is part of OpenTTD. * This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>. * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/ */
/* @file midifile.hpp Parser for standard MIDI files */ /* @file midifile.hpp Parser for standard MIDI files */

View File

@ -31,7 +31,7 @@
* If changing the call paths into the scripting engine, define this symbol to enable full debugging of allocations. * If changing the call paths into the scripting engine, define this symbol to enable full debugging of allocations.
* This lets you track whether the allocator context is being switched correctly in all call paths. * This lets you track whether the allocator context is being switched correctly in all call paths.
#define SCRIPT_DEBUG_ALLOCATIONS #define SCRIPT_DEBUG_ALLOCATIONS
*/ */
struct ScriptAllocator { struct ScriptAllocator {
size_t allocated_size; ///< Sum of allocated data size size_t allocated_size; ///< Sum of allocated data size

View File

@ -41,9 +41,9 @@ typedef HRESULT(__stdcall *API_XAudio2Create)(_Outptr_ IXAudio2** ppXAudio2, UIN
static FSoundDriver_XAudio2 iFSoundDriver_XAudio2; static FSoundDriver_XAudio2 iFSoundDriver_XAudio2;
/** /**
* Implementation of the IXAudio2VoiceCallback interface. * Implementation of the IXAudio2VoiceCallback interface.
* Provides buffered audio to XAudio2 from the OpenTTD mixer. * Provides buffered audio to XAudio2 from the OpenTTD mixer.
*/ */
class StreamingVoiceContext : public IXAudio2VoiceCallback class StreamingVoiceContext : public IXAudio2VoiceCallback
{ {
private: private:
@ -132,12 +132,12 @@ static HRESULT CreateXAudio(API_XAudio2Create xAudio2Create)
} }
/** /**
* Initialises the XAudio2 driver. * Initialises the XAudio2 driver.
* *
* @param parm Driver parameters. * @param parm Driver parameters.
* @return An error message if unsuccessful, or nullptr otherwise. * @return An error message if unsuccessful, or nullptr otherwise.
* *
*/ */
const char *SoundDriver_XAudio2::Start(const StringList &parm) const char *SoundDriver_XAudio2::Start(const StringList &parm)
{ {
HRESULT hr = CoInitializeEx(nullptr, COINIT_MULTITHREADED); HRESULT hr = CoInitializeEx(nullptr, COINIT_MULTITHREADED);
@ -261,8 +261,8 @@ const char *SoundDriver_XAudio2::Start(const StringList &parm)
} }
/** /**
* Terminates the XAudio2 driver. * Terminates the XAudio2 driver.
*/ */
void SoundDriver_XAudio2::Stop() void SoundDriver_XAudio2::Stop()
{ {
// Clean up XAudio2 // Clean up XAudio2

View File

@ -1609,7 +1609,7 @@ void Vehicle::UpdatePosition()
/** /**
* Update the bounding box co-ordinates of the vehicle * Update the bounding box co-ordinates of the vehicle
* @param update_cache Update the cached values for previous co-ordinate values * @param update_cache Update the cached values for previous co-ordinate values
*/ */
void Vehicle::UpdateBoundingBoxCoordinates(bool update_cache) const void Vehicle::UpdateBoundingBoxCoordinates(bool update_cache) const
{ {
Rect new_coord; Rect new_coord;

View File

@ -1,9 +1,9 @@
/* /*
* This file is part of OpenTTD. * This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>. * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/ */
/** @file town_kdtree.h Declarations for accessing the k-d tree of towns */ /** @file town_kdtree.h Declarations for accessing the k-d tree of towns */