diff options
author | Spp <none@none> | 2010-04-07 22:59:46 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-04-07 22:59:46 +0200 |
commit | 49d05ba9aa1cd5c1f3ae96546283e6d03a037ff7 (patch) | |
tree | f7e6135573366a686c1f527e16a0a7d42a7877ff /src/game/Corpse.cpp | |
parent | d19e12708001fbef2308be0e8cb5375a2ac7af48 (diff) |
Code style (game + scripts only):
"( " --> "("
" )" --> ")"
--HG--
branch : trunk
Diffstat (limited to 'src/game/Corpse.cpp')
-rw-r--r-- | src/game/Corpse.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/game/Corpse.cpp b/src/game/Corpse.cpp index 3e658e9c5dc..510ea13e78b 100644 --- a/src/game/Corpse.cpp +++ b/src/game/Corpse.cpp @@ -68,14 +68,14 @@ void Corpse::RemoveFromWorld() Object::RemoveFromWorld(); } -bool Corpse::Create( uint32 guidlow, Map *map ) +bool Corpse::Create(uint32 guidlow, Map *map) { SetMap(map); Object::_Create(guidlow, 0, HIGHGUID_CORPSE); return true; } -bool Corpse::Create( uint32 guidlow, Player *owner) +bool Corpse::Create(uint32 guidlow, Player *owner) { ASSERT(owner); @@ -94,8 +94,8 @@ bool Corpse::Create( uint32 guidlow, Player *owner) WorldObject::_Create(guidlow, HIGHGUID_CORPSE, owner->GetPhaseMask()); - SetFloatValue( OBJECT_FIELD_SCALE_X, 1 ); - SetUInt64Value( CORPSE_FIELD_OWNER, owner->GetGUID() ); + SetFloatValue(OBJECT_FIELD_SCALE_X, 1); + SetUInt64Value(CORPSE_FIELD_OWNER, owner->GetGUID()); m_grid = Trinity::ComputeGridPair(GetPositionX(), GetPositionY()); @@ -118,14 +118,14 @@ void Corpse::SaveToDB() << GetOrientation() << ", " << GetZoneId() << ", " << GetMapId() << ", '"; - for (uint16 i = 0; i < m_valuesCount; ++i ) + for (uint16 i = 0; i < m_valuesCount; ++i) ss << GetUInt32Value(i) << " "; ss << "'," << uint64(m_time) <<", " << uint32(GetType()) << ", " << int(GetInstanceId()) << ", " << uint16(GetPhaseMask()) << ")"; // prevent out of range error - CharacterDatabase.Execute( ss.str().c_str() ); + CharacterDatabase.Execute(ss.str().c_str()); CharacterDatabase.CommitTransaction(); } @@ -161,7 +161,7 @@ bool Corpse::LoadFromDB(uint32 guid, QueryResult *result, uint32 InstanceId) // 0 1 2 3 4 5 6 7 8 9 result = CharacterDatabase.PQuery("SELECT position_x,position_y,position_z,orientation,map,data,time,corpse_type,instance,phaseMask FROM corpse WHERE guid = '%u'",guid); - if ( !result ) + if (!result) { sLog.outError("Corpse (GUID: %u) not found in table `corpse`, can't load. ",guid); return false; @@ -193,7 +193,7 @@ bool Corpse::LoadFromDB(uint32 guid, Field *fields) Object::_Create(guid, 0, HIGHGUID_CORPSE); - if (!LoadValues( fields[5].GetString() )) + if (!LoadValues(fields[5].GetString())) { sLog.outError("Corpse #%d have broken data in `data` field. Can't be loaded.",guid); return false; |