summaryrefslogtreecommitdiff
path: root/docs/cpp-code-standards.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/cpp-code-standards.md')
-rw-r--r--docs/cpp-code-standards.md8
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.