Fix warnings

This commit is contained in:
Aokromes
2017-11-27 06:43:18 +01:00
parent 405445d564
commit e5013581d5
2 changed files with 1 additions and 3 deletions

View File

@@ -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();

View File

@@ -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;