diff options
| author | Kitzunu <24550914+Kitzunu@users.noreply.github.com> | 2023-07-10 22:45:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-10 22:45:12 +0200 |
| commit | 943499569eda3bac06bd2cf3b60da9aa71b6a846 (patch) | |
| tree | 0651d5108cd09ef42914c6e96bfc230b80b37f6d /docs | |
| parent | 403e8a2c4c0e925dadfb1b601304cd91707d1b70 (diff) | |
| download | wiki-943499569eda3bac06bd2cf3b60da9aa71b6a846.tar.gz wiki-943499569eda3bac06bd2cf3b60da9aa71b6a846.tar.bz2 wiki-943499569eda3bac06bd2cf3b60da9aa71b6a846.zip | |
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/cpp-code-standards.md | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/docs/cpp-code-standards.md b/docs/cpp-code-standards.md index f5625a0..3bf6e91 100644 --- a/docs/cpp-code-standards.md +++ b/docs/cpp-code-standards.md @@ -77,13 +77,9 @@ if (var) me->DoB(); } else -{ me->DoC(); -} ``` -**Please note that brackets should always start on a new line, as displayed in the example above.** - ### Loop syntax ```cpp @@ -117,18 +113,14 @@ Wrong: ```cpp if (player->GetQuestStatus(10090) == 1) -{ me->RemoveFlag(58, 2); -} ``` Correct: ```cpp if (player->GetQuestStatus(QUEST_BEAT_UP) == QUEST_STATUS_INCOMPLETE) -{ me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); -} ``` Constants are set with #defines, constexpr, or enum/enum class. If it does not exist - create one. |
