aboutsummaryrefslogtreecommitdiff
path: root/src/game/GameObject.cpp
diff options
context:
space:
mode:
authormaximius <none@none>2009-11-03 22:28:04 -0800
committermaximius <none@none>2009-11-03 22:28:04 -0800
commit1d7f2fc243b39c2f4c1dac247c9fa2034ba7169f (patch)
treee3d8b75e330f219495c32e120823465bc54f07b7 /src/game/GameObject.cpp
parent1eaf0396b2ce3ab171f982f0115d2317d67ffa7e (diff)
*Update WorldSession::HandleMovementOpcodes with some new information on how vehicles behave, and do a little bit of cleanup.
--HG-- branch : trunk
Diffstat (limited to 'src/game/GameObject.cpp')
-rw-r--r--src/game/GameObject.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp
index 8a2bf6f521d..2c4229a9a26 100644
--- a/src/game/GameObject.cpp
+++ b/src/game/GameObject.cpp
@@ -419,7 +419,7 @@ void GameObject::Update(uint32 /*p_time*/)
{
std::set<uint32>::const_iterator it = m_unique_users.begin();
std::set<uint32>::const_iterator end = m_unique_users.end();
- for (; it != end; it++)
+ for (; it != end; ++it)
{
Unit* owner = Unit::GetUnit(*this, uint64(*it));
// For now we do not support go cast
@@ -986,12 +986,12 @@ void GameObject::Use(Unit* user)
if(user->GetTypeId() != TYPEID_PLAYER)
return;
- if (!ChairListSlots.size()) //this is called once at first chair use to make list of available slots
- if (info->chair.slots > 0) //sometimes chairs in DB have error in fields and we dont know number of slots
- for (uint32 i=0; i<info->chair.slots; i++)
- ChairListSlots[i] = 0; //Last user of current slot set to 0 (none sit here yet)
+ if (!ChairListSlots.size()) // this is called once at first chair use to make list of available slots
+ if (info->chair.slots > 0) // sometimes chairs in DB have error in fields and we dont know number of slots
+ for (uint32 i = 0; i < info->chair.slots; ++i)
+ ChairListSlots[i] = 0; // Last user of current slot set to 0 (none sit here yet)
else
- ChairListSlots[0] = 0; //error in DB, make one default slot
+ ChairListSlots[0] = 0; // error in DB, make one default slot
Player* player = (Player*)user;