diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/memory.cpp | 6 | ||||
-rw-r--r-- | src/variant/basis.cpp | 2 | ||||
-rw-r--r-- | src/variant/color.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp index f330c23..fca794d 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -36,7 +36,7 @@ namespace godot { void *Memory::alloc_static(size_t p_bytes, bool p_pad_align) { #ifdef DEBUG_ENABLED - bool prepad = false; // Alredy pre paded in the engine. + bool prepad = false; // Already pre paded in the engine. #else bool prepad = p_pad_align; #endif @@ -63,7 +63,7 @@ void *Memory::realloc_static(void *p_memory, size_t p_bytes, bool p_pad_align) { uint8_t *mem = (uint8_t *)p_memory; #ifdef DEBUG_ENABLED - bool prepad = false; // Alredy pre paded in the engine. + bool prepad = false; // Already pre paded in the engine. #else bool prepad = p_pad_align; #endif @@ -82,7 +82,7 @@ void Memory::free_static(void *p_ptr, bool p_pad_align) { uint8_t *mem = (uint8_t *)p_ptr; #ifdef DEBUG_ENABLED - bool prepad = false; // Alredy pre paded in the engine. + bool prepad = false; // Already pre paded in the engine. #else bool prepad = p_pad_align; #endif diff --git a/src/variant/basis.cpp b/src/variant/basis.cpp index 8d4176e..200cd06 100644 --- a/src/variant/basis.cpp +++ b/src/variant/basis.cpp @@ -816,7 +816,7 @@ void Basis::get_axis_angle(Vector3 &r_axis, real_t &r_angle) const { return; } // As we have reached here there are no singularities so we can handle normally. - double s = Math::sqrt((rows[2][1] - rows[1][2]) * (rows[2][1] - rows[1][2]) + (rows[0][2] - rows[2][0]) * (rows[0][2] - rows[2][0]) + (rows[1][0] - rows[0][1]) * (rows[1][0] - rows[0][1])); // Used to normalise. + double s = Math::sqrt((rows[2][1] - rows[1][2]) * (rows[2][1] - rows[1][2]) + (rows[0][2] - rows[2][0]) * (rows[0][2] - rows[2][0]) + (rows[1][0] - rows[0][1]) * (rows[1][0] - rows[0][1])); // Used to normalize. if (Math::abs(s) < CMP_EPSILON) { // Prevent divide by zero, should not happen if matrix is orthogonal and should be caught by singularity test above. diff --git a/src/variant/color.cpp b/src/variant/color.cpp index 28224a2..4e3b870 100644 --- a/src/variant/color.cpp +++ b/src/variant/color.cpp @@ -192,7 +192,7 @@ void Color::set_hsv(float p_h, float p_s, float p_v, float p_alpha) { a = p_alpha; if (p_s == 0.0f) { - // Achromatic (grey) + // Achromatic (gray) r = g = b = p_v; return; } |