mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[9381] Fixed some compile warnings.
This commit is contained in:
parent
2bdcb1161c
commit
ccfd42bf3e
55 changed files with 219 additions and 203 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue