Skip to content

Commit

Permalink
Fix typos with codespell
Browse files Browse the repository at this point in the history
Found via `codespell -q 3 --skip="./thirdparty,./editor/translations" -I ../godot-word-whitelist.txt`
Whitelist consists of:
```
ang
doubleclick
lod
nd
que
te
unselect
```
  • Loading branch information
luzpaz authored and akien-mga committed Feb 21, 2018
1 parent 6afaf83 commit 612ab4b
Show file tree
Hide file tree
Showing 60 changed files with 91 additions and 91 deletions.
6 changes: 3 additions & 3 deletions core/command_queue_mt.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
#define _COMMA_11 ,
#define _COMMA_12 ,

// 1-based comma separed list of ITEMs
// 1-based comma separated list of ITEMs
#define COMMA_SEP_LIST(ITEM, LENGTH) _COMMA_SEP_LIST_##LENGTH(ITEM)
#define _COMMA_SEP_LIST_12(ITEM) \
_COMMA_SEP_LIST_11(ITEM) \
Expand Down Expand Up @@ -95,7 +95,7 @@
ITEM(1)
#define _COMMA_SEP_LIST_0(ITEM)

// 1-based semicolon separed list of ITEMs
// 1-based semicolon separated list of ITEMs
#define SEMIC_SEP_LIST(ITEM, LENGTH) _SEMIC_SEP_LIST_##LENGTH(ITEM)
#define _SEMIC_SEP_LIST_12(ITEM) \
_SEMIC_SEP_LIST_11(ITEM); \
Expand Down Expand Up @@ -135,7 +135,7 @@
ITEM(1)
#define _SEMIC_SEP_LIST_0(ITEM)

// 1-based space separed list of ITEMs
// 1-based space separated list of ITEMs
#define SPACE_SEP_LIST(ITEM, LENGTH) _SPACE_SEP_LIST_##LENGTH(ITEM)
#define _SPACE_SEP_LIST_12(ITEM) \
_SPACE_SEP_LIST_11(ITEM) \
Expand Down
2 changes: 1 addition & 1 deletion core/compressed_translation.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class PHashTranslation : public Translation {
GDCLASS(PHashTranslation, Translation);

//this translation uses a sort of modified perfect hash algorithm
//it requieres hashing strings twice and then does a binary search,
//it requires hashing strings twice and then does a binary search,
//so it's slower, but at the same time it has an extreemly high chance
//of catching untranslated strings

Expand Down
2 changes: 1 addition & 1 deletion core/error_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#include "typedefs.h"
/**
* Error macros. Unlike exceptions and asserts, these macros try to mantain consistency and stability
* Error macros. Unlike exceptions and asserts, these macros try to maintain consistency and stability
* inside the code. It is recommended to always return processable data, so in case of an error, the
* engine can stay working well.
* In most cases, bugs and/or invalid data are not fatal and should never allow a perfectly running application
Expand Down
2 changes: 1 addition & 1 deletion core/global_constants.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ void register_global_constants() {
BIND_GLOBAL_ENUM_CONSTANT_CUSTOM("TYPE_COLOR_ARRAY", Variant::POOL_COLOR_ARRAY);
BIND_GLOBAL_ENUM_CONSTANT_CUSTOM("TYPE_MAX", Variant::VARIANT_MAX);

//comparation
//comparison
BIND_GLOBAL_ENUM_CONSTANT_CUSTOM("OP_EQUAL", Variant::OP_EQUAL);
BIND_GLOBAL_ENUM_CONSTANT_CUSTOM("OP_NOT_EQUAL", Variant::OP_NOT_EQUAL);
BIND_GLOBAL_ENUM_CONSTANT_CUSTOM("OP_LESS", Variant::OP_LESS);
Expand Down
2 changes: 1 addition & 1 deletion core/io/ip_address.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ IP_Address::IP_Address(const String &p_string) {
clear();

if (p_string == "*") {
// Wildcard (not a vaild IP)
// Wildcard (not a valid IP)
wildcard = true;

} else if (p_string.find(":") >= 0) {
Expand Down
4 changes: 2 additions & 2 deletions core/map.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class Map {
if (node->right != _data._nil) {

node = node->right;
while (node->left != _data._nil) { /* returns the minium of the right subtree of node */
while (node->left != _data._nil) { /* returns the minimum of the right subtree of node */
node = node->left;
}
return node;
Expand All @@ -219,7 +219,7 @@ class Map {
if (node->left != _data._nil) {

node = node->left;
while (node->right != _data._nil) { /* returns the minium of the left subtree of node */
while (node->right != _data._nil) { /* returns the minimum of the left subtree of node */
node = node->right;
}
return node;
Expand Down
2 changes: 1 addition & 1 deletion core/message_queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ void MessageQueue::flush() {

while (read_pos < buffer_end) {

//lock on each interation, so a call can re-add itself to the message queue
//lock on each iteration, so a call can re-add itself to the message queue

Message *message = (Message *)&buffer[read_pos];

Expand Down
4 changes: 2 additions & 2 deletions core/pool_allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ bool PoolAllocator::find_hole(EntryArrayPos *p_pos, int p_for_size) {

int hole_size = entry.pos - prev_entry_end_pos;

/* detemine if what we want fits in that hole */
/* determine if what we want fits in that hole */
if (hole_size >= p_for_size) {
*p_pos = i;
return true;
Expand All @@ -100,7 +100,7 @@ bool PoolAllocator::find_hole(EntryArrayPos *p_pos, int p_for_size) {
prev_entry_end_pos = entry_end(entry);
}

/* No holes between entrys, check at the end..*/
/* No holes between entries, check at the end..*/

if ((pool_size - prev_entry_end_pos) >= p_for_size) {
*p_pos = entry_count;
Expand Down
4 changes: 2 additions & 2 deletions core/script_debugger_remote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1016,11 +1016,11 @@ void ScriptDebuggerRemote::add_profiling_frame_data(const StringName &p_name, co
}

void ScriptDebuggerRemote::profiling_start() {
//ignores this, uses it via connnection
//ignores this, uses it via connection
}

void ScriptDebuggerRemote::profiling_end() {
//ignores this, uses it via connnection
//ignores this, uses it via connection
}

void ScriptDebuggerRemote::profiling_set_frame_times(float p_frame_time, float p_idle_time, float p_physics_time, float p_physics_frame_time) {
Expand Down
4 changes: 2 additions & 2 deletions core/set.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class Set {
if (node->right != _data._nil) {

node = node->right;
while (node->left != _data._nil) { /* returns the minium of the right subtree of node */
while (node->left != _data._nil) { /* returns the minimum of the right subtree of node */
node = node->left;
}
return node;
Expand All @@ -207,7 +207,7 @@ class Set {
if (node->left != _data._nil) {

node = node->left;
while (node->right != _data._nil) { /* returns the minium of the left subtree of node */
while (node->right != _data._nil) { /* returns the minimum of the left subtree of node */
node = node->right;
}
return node;
Expand Down
2 changes: 1 addition & 1 deletion core/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ class Variant {
// If this changes the table in variant_op must be updated
enum Operator {

//comparation
//comparison
OP_EQUAL,
OP_NOT_EQUAL,
OP_LESS,
Expand Down
2 changes: 1 addition & 1 deletion core/variant_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Variant::operator bool() const {
return booleanize();
}

// We consider all unitialized or empty types to be false based on the type's
// We consider all uninitialized or empty types to be false based on the type's
// zeroiness.
bool Variant::booleanize() const {
return !is_zero();
Expand Down
2 changes: 1 addition & 1 deletion doc/classes/ConfigFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Helper class to handle INI-style files.
</brief_description>
<description>
This helper class can be used to store [Variant] values on the filesystem using INI-style formatting. The stored values are indentified by a section and a key:
This helper class can be used to store [Variant] values on the filesystem using INI-style formatting. The stored values are identified by a section and a key:
[codeblock]
[section]
some_key=42
Expand Down
2 changes: 1 addition & 1 deletion doc/classes/File.xml
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@
<members>
<member name="endian_swap" type="bool" setter="set_endian_swap" getter="get_endian_swap">
If [code]true[/code] the file's endianness is swapped. Use this if you're dealing with files written in big endian machines.
Note that this is about the file format, not CPU type. This is always reseted to [code]false[/code] whenever you open the file.
Note that this is about the file format, not CPU type. This is always reset to [code]false[/code] whenever you open the file.
</member>
</members>
<constants>
Expand Down
2 changes: 1 addition & 1 deletion doc/classes/HTTPClient.xml
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
HTTP status code [code]429 Too Many Requests[/code]. The user has sent too many requests in a given amount of time (see "rate limiting"). Back off and increase time between requests or try again later.
</constant>
<constant name="RESPONSE_REQUEST_HEADER_FIELDS_TOO_LARGE" value="431" enum="ResponseCode">
HTTP status code [code]431 Rquest Header Fields Too Large[/code]. The server is unwilling to process the request because its header fields are too large. The request MAY be resubmitted after reducing the size of the request header fields.
HTTP status code [code]431 Request Header Fields Too Large[/code]. The server is unwilling to process the request because its header fields are too large. The request MAY be resubmitted after reducing the size of the request header fields.
</constant>
<constant name="RESPONSE_UNAVAILABLE_FOR_LEGAL_REASONS" value="451" enum="ResponseCode">
HTTP status code [code]451 Response Unavailable For Legal Reasons[/code]. The server is denying access to the resource as a consequence of a legal demand.
Expand Down
2 changes: 1 addition & 1 deletion doc/classes/Line2D.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<argument index="1" name="position" type="Vector2">
</argument>
<description>
Overwites the position in point [code]i[/code] with the supplied [code]position[/code].
Overwrites the position in point [code]i[/code] with the supplied [code]position[/code].
</description>
</method>
</methods>
Expand Down
2 changes: 1 addition & 1 deletion doc/classes/Sprite.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
Current frame to display from sprite sheet. [member vframes] or [member hframes] must be greater than 1.
</member>
<member name="hframes" type="int" setter="set_hframes" getter="get_hframes">
The number of collumns in the sprite sheet.
The number of columns in the sprite sheet.
</member>
<member name="normal_map" type="Texture" setter="set_normal_map" getter="get_normal_map">
The normal map gives depth to the Sprite.
Expand Down
2 changes: 1 addition & 1 deletion doc/classes/Viewport.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
<return type="bool">
</return>
<description>
Get the enabled status of the size strech override set with [method set_size_override_stretch].
Get the enabled status of the size stretch override set with [method set_size_override_stretch].
</description>
</method>
<method name="set_attach_to_screen_rect">
Expand Down
2 changes: 1 addition & 1 deletion doc/classes/VisualServer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,7 @@
<return type="void">
</return>
<description>
Syncronizes threads.
Synchronizes threads.
</description>
</method>
<method name="free_rid">
Expand Down
2 changes: 1 addition & 1 deletion drivers/convex_decomp/b2d_decompose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static Vector<Vector<Vector2> > _b2d_decompose(const Vector<Vector2> &p_polygon)
float32 dot = dx0 * dx1 + dy0 * dy1;
if (fabs(cross) < b2_angularSlop && dot > 0) {
//Angle too close, split the triangle across from this point.
//This is guaranteed to result in two triangles that satify
//This is guaranteed to result in two triangles that satisfy
//the tolerance (one of the angles is 90 degrees)
float32 dx2 = curr.x[lower] - curr.x[upper];
float32 dy2 = curr.y[lower] - curr.y[upper];
Expand Down
2 changes: 1 addition & 1 deletion drivers/gles3/rasterizer_storage_gles3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ Ref<Image> RasterizerStorageGLES3::texture_get_data(RID p_texture, VS::CubeMapSi
return Ref<Image>(img);
#else

ERR_EXPLAIN("Sorry, It's not posible to obtain images back in OpenGL ES");
ERR_EXPLAIN("Sorry, It's not possible to obtain images back in OpenGL ES");
return Ref<Image>();
#endif
}
Expand Down
2 changes: 1 addition & 1 deletion editor/dictionary_property_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void DictionaryPropertyEdit::_notif_changev(const String &p_v) {

void DictionaryPropertyEdit::_set_key(const Variant &p_old_key, const Variant &p_new_key) {

// TODO: Set key of a dictionary is not allowd yet
// TODO: Set key of a dictionary is not allowed yet
return;
}

Expand Down
2 changes: 1 addition & 1 deletion editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2908,7 +2908,7 @@ void EditorNode::_set_main_scene_state(Dictionary p_state, Node *p_for_scene) {

if (p_state.has("editor_index")) {
int index = p_state["editor_index"];
if (current < 2) { //if currently in spatial/2d, only switch to spatial/2d. if curently in script, stay there
if (current < 2) { //if currently in spatial/2d, only switch to spatial/2d. if currently in script, stay there
if (index < 2 || !get_edited_scene()) {
_editor_select(index);
}
Expand Down
2 changes: 1 addition & 1 deletion editor/import/resource_importer_csv_translation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void ResourceImporterCSVTranslation::get_recognized_extensions(List<String> *p_e
}

String ResourceImporterCSVTranslation::get_save_extension() const {
return ""; //does not save a single resoure
return ""; //does not save a single resource
}

String ResourceImporterCSVTranslation::get_resource_type() const {
Expand Down
6 changes: 3 additions & 3 deletions editor/plugins/canvas_item_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ void CanvasItemEditor::_save_canvas_item_state(List<CanvasItem *> p_canvas_items
bone = Object::cast_to<Node2D>(bone->get_parent());
}

//Save the bone state and lenght if we have an IK chain
//Save the bone state and length if we have an IK chain
if (ik_found) {
bone = Object::cast_to<Node2D>(canvas_item);
Transform2D bone_xform = bone->get_global_transform();
Expand Down Expand Up @@ -676,12 +676,12 @@ bool CanvasItemEditor::_gui_input_rulers_and_guides(const Ref<InputEvent> &p_eve
Ref<InputEventMouseButton> b = p_event;
Ref<InputEventMouseMotion> m = p_event;

// Start draging a guide
// Start dragging a guide
if (drag_type == DRAG_NONE) {
if (b.is_valid() && b->get_button_index() == BUTTON_LEFT && b->is_pressed()) {
if (show_guides && show_rulers && EditorNode::get_singleton()->get_edited_scene()) {
Transform2D xform = viewport_scrollable->get_transform() * transform;
// Retreive the guide lists
// Retrieve the guide lists
Array vguides;
if (EditorNode::get_singleton()->get_edited_scene()->has_meta("_edit_vertical_guides_")) {
vguides = EditorNode::get_singleton()->get_edited_scene()->get_meta("_edit_vertical_guides_");
Expand Down
10 changes: 5 additions & 5 deletions editor/plugins/collision_polygon_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ bool CollisionPolygonEditor::forward_spatial_gui_input(Camera *p_camera, const R
Vector<Vector2> poly = node->get_polygon();

//first check if a point is to be added (segment split)
real_t grab_treshold = EDITOR_DEF("editors/poly_editor/point_grab_radius", 8);
real_t grab_threshold = EDITOR_DEF("editors/poly_editor/point_grab_radius", 8);

switch (mode) {

Expand All @@ -159,7 +159,7 @@ bool CollisionPolygonEditor::forward_spatial_gui_input(Camera *p_camera, const R
return true;
} else {

if (wip.size() > 1 && p_camera->unproject_position(gt.xform(Vector3(wip[0].x, wip[0].y, depth))).distance_to(gpoint) < grab_treshold) {
if (wip.size() > 1 && p_camera->unproject_position(gt.xform(Vector3(wip[0].x, wip[0].y, depth))).distance_to(gpoint) < grab_threshold) {
//wip closed
_wip_close();

Expand Down Expand Up @@ -213,7 +213,7 @@ bool CollisionPolygonEditor::forward_spatial_gui_input(Camera *p_camera, const R
continue; //not valid to reuse point

real_t d = cp.distance_to(gpoint);
if (d < closest_dist && d < grab_treshold) {
if (d < closest_dist && d < grab_threshold) {
closest_dist = d;
closest_pos = cp;
closest_idx = i;
Expand Down Expand Up @@ -242,7 +242,7 @@ bool CollisionPolygonEditor::forward_spatial_gui_input(Camera *p_camera, const R
Vector2 cp = p_camera->unproject_position(gt.xform(Vector3(poly[i].x, poly[i].y, depth)));

real_t d = cp.distance_to(gpoint);
if (d < closest_dist && d < grab_treshold) {
if (d < closest_dist && d < grab_threshold) {
closest_dist = d;
closest_pos = cp;
closest_idx = i;
Expand Down Expand Up @@ -288,7 +288,7 @@ bool CollisionPolygonEditor::forward_spatial_gui_input(Camera *p_camera, const R
Vector2 cp = p_camera->unproject_position(gt.xform(Vector3(poly[i].x, poly[i].y, depth)));

real_t d = cp.distance_to(gpoint);
if (d < closest_dist && d < grab_treshold) {
if (d < closest_dist && d < grab_threshold) {
closest_dist = d;
closest_pos = cp;
closest_idx = i;
Expand Down
2 changes: 1 addition & 1 deletion main/input_default.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ Point2 InputDefault::get_last_mouse_speed() const {

int InputDefault::get_mouse_button_mask() const {

return mouse_button_mask; // do not trust OS implementaiton, should remove it - OS::get_singleton()->get_mouse_button_state();
return mouse_button_mask; // do not trust OS implementation, should remove it - OS::get_singleton()->get_mouse_button_state();
}

void InputDefault::warp_mouse_position(const Vector2 &p_to) {
Expand Down
6 changes: 3 additions & 3 deletions methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,7 @@ def use_windows_spawn_fix(self, platform=None):
# that makes object files with same names to be overwritten so the last wins and
# the library looses symbols defined by overwritten objects.
# By enabling quick append instead of the default mode (replacing), libraries will
# got built correctly regardless the invokation strategy.
# got built correctly regardless the invocation strategy.
# Furthermore, since SCons will rebuild the library from scratch when an object file
# changes, no multiple versions of the same object file will be present.
self.Replace(ARFLAGS='q')
Expand Down Expand Up @@ -1607,7 +1607,7 @@ def detect_visual_c_compiler_version(tools_env):
# There is no flag to give to visual c compilers to set the architecture, ie scons bits argument (32,64,ARM etc)
# There are many different cl.exe files that are run, and each one compiles & links to a different architecture
# As far as I know, the only way to figure out what compiler will be run when Scons calls cl.exe via Program()
# is to check the PATH variable and figure out which one will be called first. Code bellow does that and returns:
# is to check the PATH variable and figure out which one will be called first. Code below does that and returns:
# the following string values:

# "" Compiler not detected
Expand All @@ -1627,7 +1627,7 @@ def detect_visual_c_compiler_version(tools_env):
if 'VCINSTALLDIR' in tools_env:
# print("Checking VCINSTALLDIR")

# find() works with -1 so big ifs bellow are needed... the simplest solution, in fact
# find() works with -1 so big ifs below are needed... the simplest solution, in fact
# First test if amd64 and amd64_x86 compilers are present in the path
vc_amd64_compiler_detection_index = tools_env["PATH"].find(tools_env["VCINSTALLDIR"] + "BIN\\amd64;")
if(vc_amd64_compiler_detection_index > -1):
Expand Down
2 changes: 1 addition & 1 deletion modules/bullet/bullet_physics_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ int BulletPhysicsServer::body_get_max_contacts_reported(RID p_body) const {
return body->get_max_collisions_detection();
}

void BulletPhysicsServer::body_set_contacts_reported_depth_threshold(RID p_body, float p_treshold) {
void BulletPhysicsServer::body_set_contacts_reported_depth_threshold(RID p_body, float p_threshold) {
WARN_PRINT("Not supported by bullet and even Godot");
}

Expand Down
2 changes: 1 addition & 1 deletion modules/bullet/bullet_physics_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class BulletPhysicsServer : public PhysicsServer {
virtual void body_set_max_contacts_reported(RID p_body, int p_contacts);
virtual int body_get_max_contacts_reported(RID p_body) const;

virtual void body_set_contacts_reported_depth_threshold(RID p_body, float p_treshold);
virtual void body_set_contacts_reported_depth_threshold(RID p_body, float p_threshold);
virtual float body_get_contacts_reported_depth_threshold(RID p_body) const;

virtual void body_set_omit_force_integration(RID p_body, bool p_omit);
Expand Down
2 changes: 1 addition & 1 deletion modules/bullet/godot_motion_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class GodotMotionState : public btMotionState {

public:
/// Use this function to move kinematic body
/// -- or set initial transfom before body creation.
/// -- or set initial transform before body creation.
void moveBody(const btTransform &newWorldTransform) {
bodyKinematicWorldTransf = newWorldTransform;
}
Expand Down
Loading

0 comments on commit 612ab4b

Please sign in to comment.