diff options
| author | kaelima <jeppo_meyer@msn.com> | 2011-06-12 02:30:32 +0200 |
|---|---|---|
| committer | kaelima <jeppo_meyer@msn.com> | 2011-06-12 02:30:32 +0200 |
| commit | b9e8694540f019792f15dfbee8041cec61e8b2bf (patch) | |
| tree | 9e4207d391764e3d7ac3f71185aa9ccef46fb8e0 /src/server/game/Entities/Creature | |
| parent | da03bbbdab7515434191ab1f48e686fcac11cca2 (diff) | |
Core: Continued cleanup
If and for whitespaces.
Diffstat (limited to 'src/server/game/Entities/Creature')
| -rwxr-xr-x | src/server/game/Entities/Creature/Creature.cpp | 6 | ||||
| -rwxr-xr-x | src/server/game/Entities/Creature/GossipDef.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/server/game/Entities/Creature/Creature.cpp b/src/server/game/Entities/Creature/Creature.cpp index 6188c67f64f..f731ba69a54 100755 --- a/src/server/game/Entities/Creature/Creature.cpp +++ b/src/server/game/Entities/Creature/Creature.cpp @@ -78,7 +78,7 @@ bool VendorItemData::RemoveItem(uint32 item_id) VendorItem const* VendorItemData::FindItemCostPair(uint32 item_id, uint32 extendedCost) const { for (VendorItemList::const_iterator i = m_items.begin(); i != m_items.end(); ++i) - if((*i)->item == item_id && (*i)->ExtendedCost == extendedCost) + if ((*i)->item == item_id && (*i)->ExtendedCost == extendedCost) return *i; return NULL; } @@ -241,7 +241,7 @@ void Creature::RemoveCorpse(bool setSpawnTime) AI()->CorpseRemoved(respawnDelay); // Should get removed later, just keep "compatibility" with scripts - if(setSpawnTime) + if (setSpawnTime) m_respawnTime = time(NULL) + respawnDelay; float x, y, z, o; @@ -2252,7 +2252,7 @@ void Creature::AllLootRemovedFromCorpse() if (!HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_SKINNABLE)) { time_t now = time(NULL); - if(m_corpseRemoveTime <= now) + if (m_corpseRemoveTime <= now) return; float decayRate; diff --git a/src/server/game/Entities/Creature/GossipDef.cpp b/src/server/game/Entities/Creature/GossipDef.cpp index 99dbe49d0d6..54da5ed3bb9 100755 --- a/src/server/game/Entities/Creature/GossipDef.cpp +++ b/src/server/game/Entities/Creature/GossipDef.cpp @@ -254,7 +254,7 @@ void PlayerMenu::SendQuestGiverQuestList(QEmote eEmote, const std::string& Title data << uint32(eEmote._Emote); // NPC emote size_t count_pos = data.wpos(); - data << uint8 ( _questMenu.GetMenuItemCount()); + data << uint8 (_questMenu.GetMenuItemCount()); uint32 count = 0; for (; count < _questMenu.GetMenuItemCount(); ++count) { |
