[9381] Fixed some compile warnings.

This commit is contained in:
AlexDereka 2010-02-14 18:04:20 +03:00
parent 2bdcb1161c
commit ccfd42bf3e
55 changed files with 219 additions and 203 deletions

View file

@ -1078,7 +1078,7 @@ void Object::RemoveFromClientUpdateList()
ASSERT(false);
}
void Object::BuildUpdateData( UpdateDataMapType& update_players )
void Object::BuildUpdateData( UpdateDataMapType& /*update_players */)
{
sLog.outError("Unexpected call of Object::BuildUpdateData for object (TypeId: %u Update fields: %u)",GetTypeId(), m_valuesCount);
ASSERT(false);
@ -1412,8 +1412,8 @@ void WorldObject::GetRandomPoint( float x, float y, float z, float distance, flo
}
// angle to face `obj` to `this`
float angle = rand_norm()*2*M_PI_F;
float new_dist = rand_norm()*distance;
float angle = rand_norm_f()*2*M_PI_F;
float new_dist = rand_norm_f()*distance;
rand_x = x + new_dist * cos(angle);
rand_y = y + new_dist * sin(angle);