From d26e33e8594ea8b49598634fcf79b28896f817f7 Mon Sep 17 00:00:00 2001 From: Sebastien Alaiwan Date: Wed, 20 Dec 2017 07:31:24 +0100 Subject: [PATCH] Fix typos in comments --- include/graphics/AnimationTrack.h | 2 +- include/graphics/LowLevelGraphics.h | 6 +++--- include/impl/LowLevelGraphicsSDL.h | 2 +- include/sound/MusicHandler.h | 6 +++--- sources/impl/MeshLoaderCollada.cpp | 8 ++++---- sources/physics/Body2D.cpp | 2 +- sources/sound/MusicHandler.cpp | 2 +- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/include/graphics/AnimationTrack.h b/include/graphics/AnimationTrack.h index 49edf78e..11686a4d 100644 --- a/include/graphics/AnimationTrack.h +++ b/include/graphics/AnimationTrack.h @@ -58,7 +58,7 @@ namespace hpl { /** * Get a KeyFrame that contains an interpolated value. - * \param afTime The time from wihcih to create the keyframe. + * \param afTime The time from wich to create the keyframe. */ cKeyFrame GetInterpolatedKeyFrame(float afTime); diff --git a/include/graphics/LowLevelGraphics.h b/include/graphics/LowLevelGraphics.h index 2e6cb574..edfd8717 100644 --- a/include/graphics/LowLevelGraphics.h +++ b/include/graphics/LowLevelGraphics.h @@ -218,7 +218,7 @@ namespace hpl { /** - * Get the capabilities of the graphics. Th return value depends on the capability + * Get the capabilities of the graphics. The return value depends on the capability * \param aType * \return */ @@ -243,7 +243,7 @@ namespace hpl { virtual void SetVirtualSize(cVector2f avSize)=0; /** - * Set if vsync should eb active + * Set if vsync should be active * \param abX */ virtual void SetVsyncActive(bool abX)=0; @@ -272,7 +272,7 @@ namespace hpl { virtual iGpuProgram* CreateGpuProgram(const tString& asName, eGpuProgramType aType)=0; - //TODO: Kinda quick and diry, better to have a screen to Bitmap. + //TODO: Kinda quick and dirty, better to have a screen to Bitmap. // and then a save as in the Bitmap. virtual void SaveScreenToBMP(const tString& asFile)=0; diff --git a/include/impl/LowLevelGraphicsSDL.h b/include/impl/LowLevelGraphicsSDL.h index a5fab5a4..24a7c16a 100644 --- a/include/impl/LowLevelGraphicsSDL.h +++ b/include/impl/LowLevelGraphicsSDL.h @@ -26,7 +26,7 @@ #include #include -// Unix's X11 Defines DestoryAll which collides with methods +// Unix's X11 Defines DestroyAll which collides with methods #undef DestroyAll #include "graphics/LowLevelGraphics.h" diff --git a/include/sound/MusicHandler.h b/include/sound/MusicHandler.h index d8b51b90..531defd0 100644 --- a/include/sound/MusicHandler.h +++ b/include/sound/MusicHandler.h @@ -76,10 +76,10 @@ namespace hpl { ~cMusicHandler(); /** - * Play a song. Playing a song that is already playing updates it's properties. + * Play a song. Playing a song that is already playing updates its properties. * \param asFileName file to be played * \param afVolume volume to be played at - * \param afFadeStepSize volume increse/decrease per app step when fading to new volume. + * \param afFadeStepSize volume increase/decrease per app step when fading to new volume. * \param abLoop If the music should be looped or not. * \return */ @@ -94,7 +94,7 @@ namespace hpl { void Resume(); /** - * No more music can be played when locked. Latest song that has been tried to be palyed is saved in lock. + * No more music can be played when locked. Latest song that has been tried to be played is saved in lock. * \param apLock */ void Lock(cMusicLock* apLock); diff --git a/sources/impl/MeshLoaderCollada.cpp b/sources/impl/MeshLoaderCollada.cpp index 351906ac..31b2897e 100644 --- a/sources/impl/MeshLoaderCollada.cpp +++ b/sources/impl/MeshLoaderCollada.cpp @@ -1485,7 +1485,7 @@ namespace hpl { //tColladaExtraVtxListVec vExtraVtxVec; pVtxBuffer = CreateVertexBuffer(*apGeom, eVertexBufferUsageType_Static); ///,&apNode->m_mtxWorldTransform); - //Check if If the mesh casts shadows: + //Check if the mesh casts shadows: pVtxBuffer->CreateShadowDouble(true); //Transform vertex buffer with world transform @@ -2174,7 +2174,7 @@ namespace hpl { pEntity->SetCastsShadows(true); } } - //If it is not static it is an entity. Load form entity file. + //If it is not static it is an entity. Load from entity file. else { tString sEntityFile = cString::SetFileExt(sFile,"ent"); @@ -2213,9 +2213,9 @@ namespace hpl { tString sSepp = "_"; cString::GetStringVec(apNode->msName,vParams,&sSepp); - //check if this is an dynamic light + //check if this is a dynamic light bool bStatic = true; - int lParamAdd =0; //Too make it easier to support dynamic param + int lParamAdd =0; //To make it easier to support dynamic param if(cString::ToLowerCase(vParams[0]) == "dynamic"){ bStatic =false; lParamAdd =1; diff --git a/sources/physics/Body2D.cpp b/sources/physics/Body2D.cpp index 91a5974e..7db62585 100644 --- a/sources/physics/Body2D.cpp +++ b/sources/physics/Body2D.cpp @@ -168,7 +168,7 @@ namespace hpl { { if(mbAttachToGround) { - //If collided with a body, make it the new reference frame. + // If collided with a body, make it the new reference frame. if(CollideData.mlstBodies.size()>0) { tBody2DListIt it = CollideData.mlstBodies.begin(); diff --git a/sources/sound/MusicHandler.cpp b/sources/sound/MusicHandler.cpp index 448bbbcd..4bd4adcf 100644 --- a/sources/sound/MusicHandler.cpp +++ b/sources/sound/MusicHandler.cpp @@ -97,7 +97,7 @@ namespace hpl { mlstFadingSongs.push_back(mpMainSong); } - //If there the song to be played is in the fade que, stop it. + //If the song to be played is in the fading queue, stop it. tMusicEntryListIt it = mlstFadingSongs.begin(); while(it != mlstFadingSongs.end()) {