mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-26 03:42:37 +01:00
Fix warnings
This commit is contained in:
@@ -29,7 +29,6 @@ void Archaeology::LoadCompletedProjectsFromDB()
|
||||
if (!result)
|
||||
return;
|
||||
|
||||
uint32 count = 0;
|
||||
do {
|
||||
Field *fields = result->Fetch();
|
||||
uint16 project = fields[0].GetUInt16();
|
||||
@@ -68,7 +67,6 @@ void Archaeology::LoadCurrentProjectsFromDB()
|
||||
if (!result)
|
||||
return;
|
||||
|
||||
uint32 count = 0;
|
||||
do {
|
||||
Field *fields = result->Fetch();
|
||||
uint8 branch = fields[0].GetUInt8();
|
||||
|
||||
@@ -122,7 +122,7 @@ void Archaeology::UseSite()
|
||||
float ground = _player->GetMap()->GetWaterOrGroundLevel(_player->GetPhases(), x, y, z, &ground, _player->IsInWater());
|
||||
|
||||
G3D::Quat rot = G3D::Matrix3::fromEulerAnglesZYX(angle, 0.f, 0.f);
|
||||
if (abs(z - ground) < 1.5f)
|
||||
if (std::abs(z - ground) < 1.5f)
|
||||
{
|
||||
_player->SummonGameObject(surveyGoID, Position(x, y, ground, angle), rot, 4);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user