1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Style: Enforce use of bool literals instead of integers

Using clang-tidy's `modernize-use-bool-literals`.
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-bool-literals.html
This commit is contained in:
Rémi Verschelde
2021-05-04 16:28:24 +02:00
parent a828398655
commit b4af1eba0a
29 changed files with 47 additions and 47 deletions

View File

@@ -1328,8 +1328,8 @@ GridMapEditor::GridMapEditor(EditorNode *p_editor) {
for (int i = 0; i < 3; i++) {
Vector3 points[4];
for (int j = 0; j < 4; j++) {
static const bool orderx[4] = { 0, 1, 1, 0 };
static const bool ordery[4] = { 0, 0, 1, 1 };
static const bool orderx[4] = { false, true, true, false };
static const bool ordery[4] = { false, false, true, true };
Vector3 sp;
if (orderx[j]) {