diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-09 04:41:09 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-09 04:41:09 +0400 |
commit | 4f7bdc59d31e94bc97955c1efeef2a8fce0c8ecd (patch) | |
tree | 7e0a36829cf52ff260821ce02716727052b95d32 /source/gameengine/Ketsji | |
parent | 27d43f3fd3a6fbda95cdb87e4672fe34f19c2205 (diff) |
style cleanup: spelling.
also remove large, duplicate comments from sunsky.h
Diffstat (limited to 'source/gameengine/Ketsji')
-rw-r--r-- | source/gameengine/Ketsji/KX_GameObject.cpp | 4 | ||||
-rw-r--r-- | source/gameengine/Ketsji/KX_PythonInit.cpp | 6 | ||||
-rw-r--r-- | source/gameengine/Ketsji/KX_Scene.cpp | 2 | ||||
-rw-r--r-- | source/gameengine/Ketsji/KX_TouchSensor.h | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/source/gameengine/Ketsji/KX_GameObject.cpp b/source/gameengine/Ketsji/KX_GameObject.cpp index 2740a2921d2..5c758379727 100644 --- a/source/gameengine/Ketsji/KX_GameObject.cpp +++ b/source/gameengine/Ketsji/KX_GameObject.cpp @@ -170,7 +170,7 @@ KX_GameObject::~KX_GameObject() } #ifdef WITH_PYTHON if (m_attr_dict) { - PyDict_Clear(m_attr_dict); /* incase of circular refs or other weird cases */ + PyDict_Clear(m_attr_dict); /* in case of circular refs or other weird cases */ /* Py_CLEAR: Py_DECREF's and NULL's */ Py_CLEAR(m_attr_dict); } @@ -1768,7 +1768,7 @@ static int Map_SetItem(PyObject *self_v, PyObject *key, PyObject *val) if (val==NULL) { /* del ob["key"] */ int del= 0; - /* try remove both just incase */ + /* try remove both just in case */ if(attr_str) del |= (self->RemoveProperty(attr_str)==true) ? 1:0; diff --git a/source/gameengine/Ketsji/KX_PythonInit.cpp b/source/gameengine/Ketsji/KX_PythonInit.cpp index 7c47fc59ac5..cbf08a674ef 100644 --- a/source/gameengine/Ketsji/KX_PythonInit.cpp +++ b/source/gameengine/Ketsji/KX_PythonInit.cpp @@ -1736,11 +1736,11 @@ static void backupPySysObjects(void) PyObject *sys_mods= PySys_GetObject("modules"); /* should never fail */ /* paths */ - Py_XDECREF(gp_OrigPythonSysPath); /* just incase its set */ + Py_XDECREF(gp_OrigPythonSysPath); /* just in case its set */ gp_OrigPythonSysPath = PyList_GetSlice(sys_path, 0, INT_MAX); /* copy the list */ /* modules */ - Py_XDECREF(gp_OrigPythonSysModules); /* just incase its set */ + Py_XDECREF(gp_OrigPythonSysModules); /* just in case its set */ gp_OrigPythonSysModules = PyDict_Copy(sys_mods); /* copy the list */ } @@ -2093,7 +2093,7 @@ static PyObject* gPyEventToString(PyObject*, PyObject* value) } } - PyErr_Clear(); // incase there was an error clearing + PyErr_Clear(); // in case there was an error clearing Py_DECREF(mod); if (!ret) PyErr_SetString(PyExc_ValueError, "GameKeys.EventToString(int): expected a valid int keyboard event"); else Py_INCREF(ret); diff --git a/source/gameengine/Ketsji/KX_Scene.cpp b/source/gameengine/Ketsji/KX_Scene.cpp index 56127c7b634..2763dea04ec 100644 --- a/source/gameengine/Ketsji/KX_Scene.cpp +++ b/source/gameengine/Ketsji/KX_Scene.cpp @@ -1048,7 +1048,7 @@ int KX_Scene::NewRemoveObject(class CValue* gameobj) // in case this is a font m_fonts.remove((KX_FontObject*)newobj); - /* currently does nothing, keep incase we need to Unregister something */ + /* currently does nothing, keep in case we need to Unregister something */ #if 0 if (m_sceneConverter) m_sceneConverter->UnregisterGameObject(newobj); diff --git a/source/gameengine/Ketsji/KX_TouchSensor.h b/source/gameengine/Ketsji/KX_TouchSensor.h index df96b75084a..1a22067f9ac 100644 --- a/source/gameengine/Ketsji/KX_TouchSensor.h +++ b/source/gameengine/Ketsji/KX_TouchSensor.h @@ -68,7 +68,7 @@ protected: // Use with m_bTouchPulse to detect changes int m_bLastCount; /* size of m_colliders last tick */ - uint_ptr m_bColliderHash; /* hash collision objects pointers to trigger incase one object collides and another takes its place */ + uint_ptr m_bColliderHash; /* hash collision objects pointers to trigger in case one object collides and another takes its place */ uint_ptr m_bLastColliderHash; SCA_IObject* m_hitObject; |