Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in comments #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/graphics/AnimationTrack.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
6 changes: 3 additions & 3 deletions include/graphics/LowLevelGraphics.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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;
Expand Down Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion include/impl/LowLevelGraphicsSDL.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>
// Unix's X11 Defines DestoryAll which collides with methods
// Unix's X11 Defines DestroyAll which collides with methods
#undef DestroyAll

#include "graphics/LowLevelGraphics.h"
Expand Down
6 changes: 3 additions & 3 deletions include/sound/MusicHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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);
Expand Down
8 changes: 4 additions & 4 deletions sources/impl/MeshLoaderCollada.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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");
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion sources/physics/Body2D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion sources/sound/MusicHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
{
Expand Down