From ae422be979d50d24d5d444c4b86dbbdc10e2ecbc Mon Sep 17 00:00:00 2001 From: Rubidium Date: Thu, 26 Jan 2023 22:48:08 +0100 Subject: [PATCH] Cleanup: remove/replace trailing ; with . in comments --- src/3rdparty/squirrel/squirrel/sqstate.cpp | 2 +- src/fios.cpp | 2 +- src/newgrf_commons.h | 2 +- src/pathfinder/follow_track.hpp | 2 +- src/video/opengl.h | 14 +++++++------- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/3rdparty/squirrel/squirrel/sqstate.cpp b/src/3rdparty/squirrel/squirrel/sqstate.cpp index 574311cf77..6c1c9ec2fb 100644 --- a/src/3rdparty/squirrel/squirrel/sqstate.cpp +++ b/src/3rdparty/squirrel/squirrel/sqstate.cpp @@ -453,7 +453,7 @@ void RefTable::Resize(SQUnsignedInteger size) [[maybe_unused]] SQUnsignedInteger nfound = 0; for(SQUnsignedInteger n = 0; n < oldnumofslots; n++) { if(type(t->obj) != OT_NULL) { - //add back; + //add back assert(t->refs != 0); RefNode *nn = Add(::HashObj(t->obj)&(_numofslots-1),t->obj); nn->refs = t->refs; diff --git a/src/fios.cpp b/src/fios.cpp index 0491c1e51b..b07db3c8b1 100644 --- a/src/fios.cpp +++ b/src/fios.cpp @@ -295,7 +295,7 @@ bool FiosFileScanner::AddFile(const std::string &filename, size_t basepath_lengt std::string ext = filename.substr(sep); char fios_title[64]; - fios_title[0] = '\0'; // reset the title; + fios_title[0] = '\0'; // reset the title FiosType type = this->callback_proc(this->fop, filename, ext.c_str(), fios_title, lastof(fios_title)); if (type == FIOS_TYPE_INVALID) return false; diff --git a/src/newgrf_commons.h b/src/newgrf_commons.h index bf338c2da5..a53752ed0e 100644 --- a/src/newgrf_commons.h +++ b/src/newgrf_commons.h @@ -197,7 +197,7 @@ protected: uint16 max_offset; ///< what is the length of the original entity's array of specs uint16 max_entities; ///< what is the amount of entities, old and new summed - uint16 invalid_id; ///< ID used to detected invalid entities; + uint16 invalid_id; ///< ID used to detected invalid entities virtual bool CheckValidNewID(uint16 testid) { return true; } public: diff --git a/src/pathfinder/follow_track.hpp b/src/pathfinder/follow_track.hpp index a9a51da68a..ed5f181437 100644 --- a/src/pathfinder/follow_track.hpp +++ b/src/pathfinder/follow_track.hpp @@ -371,7 +371,7 @@ protected: /* entered railway station * get platform length */ uint length = BaseStation::GetByTile(m_new_tile)->GetPlatformLength(m_new_tile, TrackdirToExitdir(m_old_td)); - /* how big step we must do to get to the last platform tile; */ + /* how big step we must do to get to the last platform tile? */ m_tiles_skipped = length - 1; /* move to the platform end */ TileIndexDiff diff = TileOffsByDiagDir(m_exitdir); diff --git a/src/video/opengl.h b/src/video/opengl.h index 49fade6b02..0cdb89035a 100644 --- a/src/video/opengl.h +++ b/src/video/opengl.h @@ -48,16 +48,16 @@ private: GLuint remap_program; ///< Shader program for blending and rendering a RGBA + remap texture. GLint remap_sprite_loc; ///< Uniform location for sprite parameters. - GLint remap_screen_loc; ///< Uniform location for screen size; - GLint remap_zoom_loc; ///< Uniform location for sprite zoom; - GLint remap_rgb_loc; ///< Uniform location for RGB mode flag; + GLint remap_screen_loc; ///< Uniform location for screen size. + GLint remap_zoom_loc; ///< Uniform location for sprite zoom. + GLint remap_rgb_loc; ///< Uniform location for RGB mode flag. GLuint sprite_program; ///< Shader program for blending and rendering a sprite to the video buffer. GLint sprite_sprite_loc; ///< Uniform location for sprite parameters. - GLint sprite_screen_loc; ///< Uniform location for screen size; - GLint sprite_zoom_loc; ///< Uniform location for sprite zoom; - GLint sprite_rgb_loc; ///< Uniform location for RGB mode flag; - GLint sprite_crash_loc; ///< Uniform location for crash remap mode flag; + GLint sprite_screen_loc; ///< Uniform location for screen size. + GLint sprite_zoom_loc; ///< Uniform location for sprite zoom. + GLint sprite_rgb_loc; ///< Uniform location for RGB mode flag. + GLint sprite_crash_loc; ///< Uniform location for crash remap mode flag. LRUCache cursor_cache; ///< Cache of encoded cursor sprites. PaletteID last_sprite_pal = (PaletteID)-1; ///< Last uploaded remap palette.