diff options
| author | Spp <spp@jorge.gr> | 2011-09-29 12:43:05 +0200 |
|---|---|---|
| committer | Spp <spp@jorge.gr> | 2011-09-29 12:43:05 +0200 |
| commit | b16d2245bbd374805d15cdca585e8b42bf139605 (patch) | |
| tree | b7b63c567112e1999a2566611363cf5e83adb1be /src/server/game/Entities/GameObject | |
| parent | 8b820baa7324d41df264f48e344d62584bff70f8 (diff) | |
Cosmetic: Multiple cosmetic changes
- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '('
- Added missing space after a comma and remove space before comma (with some exceptions)
- Remove trailing spaces
- Convert tab to spaces
Note: Only affects files with extension "cpp" and "h" under /src/server
Diffstat (limited to 'src/server/game/Entities/GameObject')
| -rwxr-xr-x | src/server/game/Entities/GameObject/GameObject.cpp | 6 | ||||
| -rwxr-xr-x | src/server/game/Entities/GameObject/GameObject.h | 18 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp index 1af59592eea..4ec77e38bcf 100755 --- a/src/server/game/Entities/GameObject/GameObject.cpp +++ b/src/server/game/Entities/GameObject/GameObject.cpp @@ -276,7 +276,7 @@ void GameObject::Update(uint32 diff) { case GO_NOT_READY: { - switch(GetGoType()) + switch (GetGoType()) { case GAMEOBJECT_TYPE_TRAP: { @@ -484,7 +484,7 @@ void GameObject::Update(uint32 diff) } case GO_ACTIVATED: { - switch(GetGoType()) + switch (GetGoType()) { case GAMEOBJECT_TYPE_DOOR: case GAMEOBJECT_TYPE_BUTTON: @@ -1537,7 +1537,7 @@ void GameObject::Use(Unit* user) GameObjectTemplate const* info = GetGOInfo(); if (info) { - switch(info->entry) + switch (info->entry) { case 179785: // Silverwing Flag // check if it's correct bg diff --git a/src/server/game/Entities/GameObject/GameObject.h b/src/server/game/Entities/GameObject/GameObject.h index ff0cf03c8b8..49230569498 100755 --- a/src/server/game/Entities/GameObject/GameObject.h +++ b/src/server/game/Entities/GameObject/GameObject.h @@ -409,7 +409,7 @@ struct GameObjectTemplate // helpers bool IsDespawnAtAction() const { - switch(type) + switch (type) { case GAMEOBJECT_TYPE_CHEST: return chest.consumable; case GAMEOBJECT_TYPE_GOOBER: return goober.consumable; @@ -419,7 +419,7 @@ struct GameObjectTemplate uint32 GetLockId() const { - switch(type) + switch (type) { case GAMEOBJECT_TYPE_DOOR: return door.lockId; case GAMEOBJECT_TYPE_BUTTON: return button.lockId; @@ -438,7 +438,7 @@ struct GameObjectTemplate bool GetDespawnPossibility() const // despawn at targeting of cast? { - switch(type) + switch (type) { case GAMEOBJECT_TYPE_DOOR: return door.noDamageImmune; case GAMEOBJECT_TYPE_BUTTON: return button.noDamageImmune; @@ -452,7 +452,7 @@ struct GameObjectTemplate uint32 GetCharges() const // despawn at uses amount { - switch(type) + switch (type) { //case GAMEOBJECT_TYPE_TRAP: return trap.charges; case GAMEOBJECT_TYPE_GUARDPOST: return guardpost.charges; @@ -463,7 +463,7 @@ struct GameObjectTemplate uint32 GetLinkedGameObjectEntry() const { - switch(type) + switch (type) { case GAMEOBJECT_TYPE_CHEST: return chest.linkedTrapId; case GAMEOBJECT_TYPE_SPELL_FOCUS: return spellFocus.linkedTrapId; @@ -475,7 +475,7 @@ struct GameObjectTemplate uint32 GetAutoCloseTime() const { uint32 autoCloseTime = 0; - switch(type) + switch (type) { case GAMEOBJECT_TYPE_DOOR: autoCloseTime = door.autoCloseTime; break; case GAMEOBJECT_TYPE_BUTTON: autoCloseTime = button.autoCloseTime; break; @@ -490,7 +490,7 @@ struct GameObjectTemplate uint32 GetLootId() const { - switch(type) + switch (type) { case GAMEOBJECT_TYPE_CHEST: return chest.lootId; case GAMEOBJECT_TYPE_FISHINGHOLE: return fishinghole.lootId; @@ -500,7 +500,7 @@ struct GameObjectTemplate uint32 GetGossipMenuId() const { - switch(type) + switch (type) { case GAMEOBJECT_TYPE_QUESTGIVER: return questgiver.gossipID; case GAMEOBJECT_TYPE_GOOBER: return goober.gossipID; @@ -510,7 +510,7 @@ struct GameObjectTemplate uint32 GetEventScriptId() const { - switch(type) + switch (type) { case GAMEOBJECT_TYPE_GOOBER: return goober.eventId; case GAMEOBJECT_TYPE_CHEST: return chest.eventId; |
