fix typos and grammar in comments (#18853)

This commit is contained in:
Stewart Imel 2018-05-30 05:41:59 -07:00 committed by leda
parent eb87dec447
commit c84c5761a1
5 changed files with 5 additions and 5 deletions

View File

@ -332,7 +332,7 @@ void Sequence::startWithTarget(Node *target)
return;
}
if (_duration > FLT_EPSILON)
// fix #14936 - FLT_EPSILON (instant action) / very fast duration (0.001) leads to worng split, that leads to call instant action few times
// fix #14936 - FLT_EPSILON (instant action) / very fast duration (0.001) leads to wrong split, that leads to call instant action few times
_split = _actions[0]->getDuration() > FLT_EPSILON ? _actions[0]->getDuration() / _duration : 0;
ActionInterval::startWithTarget(target);

View File

@ -933,7 +933,7 @@ public:
/**
* Sorts the children array once before drawing, instead of every time when a child is added or reordered.
* This approach can improves the performance massively.
* This approach can improve the performance massively.
* @note Don't call this manually unless a child added needs to be removed in the same frame.
*/
virtual void sortAllChildren();

View File

@ -61,7 +61,7 @@ typedef struct PhysicsRayCastInfo
Vec2 contact;
Vec2 normal;
// FIXME: correct thing to do is use `cpFlaot` instead of float.
// FIXME: correct thing to do is use `cpFloat` instead of float.
// but in order to do so, we should include "chipmunk_types.h"
// in Chipmunk v7.0, chipmunk_types includes all the mac types that
// conflicts with cocos2d Size, Point,... etc types. And all the CocosStudio

View File

@ -35,7 +35,7 @@ THE SOFTWARE.
#include "platform/winrt/WICImageLoader-winrt.h"
#endif
// premultiply alpha, or the effect will wrong when want to use other pixel format in Texture2D,
// premultiply alpha, or the effect will be wrong when using other pixel formats in Texture2D,
// such as RGB888, RGB5A1
#define CC_RGB_PREMULTIPLY_ALPHA(vr, vg, vb, va) \
(unsigned)(((unsigned)((unsigned char)(vr) * ((unsigned char)(va) + 1)) >> 8) | \

View File

@ -52,7 +52,7 @@ NS_CC_BEGIN
* @{
*/
/*
* From version 3.0, TextureCache will never to treated as a singleton, it will be owned by director.
* From version 3.0, TextureCache will never be treated as a singleton, it will be owned by director.
* All call by TextureCache::getInstance() should be replaced by Director::getInstance()->getTextureCache().
*/