mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
[7330] Code warnings and style cleanups. Some bugs fixes. Author: VladimirMangos
1) comparison singed and unsigned values
2) redundent includes
3) wrong constructor :-part field initilization
4) unused not-/*name*/-guarded args in template/virtual functions that not required like args.
5) explicitly list not implemented achievement types.
Also bugs fixed:
1) Drop wrong phase mask 0 check in WorldObject::InSamePhase.
2) ArenaTeamMember::ModifyPersonalRating incorrect work with move points in negative with infinity values in result.
3) ArenaTeam::SaveToDB code send uint64 value to string with arg format %u.
--HG--
branch : trunk
This commit is contained in:
@@ -341,7 +341,7 @@ void ObjectMgr::LoadCreatureLocales()
|
||||
|
||||
bar.step();
|
||||
|
||||
sLog.outString("");
|
||||
sLog.outString();
|
||||
sLog.outString(">> Loaded 0 creature locale strings. DB table `locales_creature` is empty.");
|
||||
return;
|
||||
}
|
||||
@@ -409,7 +409,7 @@ void ObjectMgr::LoadNpcOptionLocales()
|
||||
|
||||
bar.step();
|
||||
|
||||
sLog.outString("");
|
||||
sLog.outString();
|
||||
sLog.outString(">> Loaded 0 npc_option locale strings. DB table `locales_npc_option` is empty.");
|
||||
return;
|
||||
}
|
||||
@@ -472,7 +472,7 @@ void ObjectMgr::LoadPointOfInterestLocales()
|
||||
|
||||
bar.step();
|
||||
|
||||
sLog.outString("");
|
||||
sLog.outString();
|
||||
sLog.outString(">> Loaded 0 points_of_interest locale strings. DB table `locales_points_of_interest` is empty.");
|
||||
return;
|
||||
}
|
||||
@@ -950,7 +950,7 @@ void ObjectMgr::LoadCreatures()
|
||||
|
||||
bar.step();
|
||||
|
||||
sLog.outString("");
|
||||
sLog.outString();
|
||||
sLog.outErrorDb(">> Loaded 0 creature. DB table `creature` is empty.");
|
||||
return;
|
||||
}
|
||||
@@ -1394,7 +1394,7 @@ void ObjectMgr::LoadItemLocales()
|
||||
|
||||
bar.step();
|
||||
|
||||
sLog.outString("");
|
||||
sLog.outString();
|
||||
sLog.outString(">> Loaded 0 Item locale strings. DB table `locales_item` is empty.");
|
||||
return;
|
||||
}
|
||||
@@ -3508,7 +3508,7 @@ void ObjectMgr::LoadQuestLocales()
|
||||
|
||||
bar.step();
|
||||
|
||||
sLog.outString("");
|
||||
sLog.outString();
|
||||
sLog.outString(">> Loaded 0 Quest locale strings. DB table `locales_quest` is empty.");
|
||||
return;
|
||||
}
|
||||
@@ -4145,7 +4145,7 @@ void ObjectMgr::LoadPageTextLocales()
|
||||
|
||||
bar.step();
|
||||
|
||||
sLog.outString("");
|
||||
sLog.outString();
|
||||
sLog.outString(">> Loaded 0 PageText locale strings. DB table `locales_page_text` is empty.");
|
||||
return;
|
||||
}
|
||||
@@ -4326,7 +4326,7 @@ void ObjectMgr::LoadNpcTextLocales()
|
||||
|
||||
bar.step();
|
||||
|
||||
sLog.outString("");
|
||||
sLog.outString();
|
||||
sLog.outString(">> Loaded 0 Quest locale strings. DB table `locales_npc_text` is empty.");
|
||||
return;
|
||||
}
|
||||
@@ -4394,7 +4394,7 @@ void ObjectMgr::ReturnOrDeleteOldMails(bool serverUp)
|
||||
{
|
||||
barGoLink bar(1);
|
||||
bar.step();
|
||||
sLog.outString("");
|
||||
sLog.outString();
|
||||
sLog.outString(">> Only expired mails (need to be return or delete) or DB table `mail` is empty.");
|
||||
return; // any mails need to be returned or deleted
|
||||
}
|
||||
@@ -5440,7 +5440,7 @@ void ObjectMgr::LoadGameObjectLocales()
|
||||
|
||||
bar.step();
|
||||
|
||||
sLog.outString("");
|
||||
sLog.outString();
|
||||
sLog.outString(">> Loaded 0 gameobject locale strings. DB table `locales_gameobject` is empty.");
|
||||
return;
|
||||
}
|
||||
@@ -6030,19 +6030,19 @@ void ObjectMgr::LoadWeatherZoneChances()
|
||||
if(wzc.data[season].rainChance > 100)
|
||||
{
|
||||
wzc.data[season].rainChance = 25;
|
||||
sLog.outErrorDb("Weather for zone %u season %u has wrong rain chance > 100%",zone_id,season);
|
||||
sLog.outErrorDb("Weather for zone %u season %u has wrong rain chance > 100%%",zone_id,season);
|
||||
}
|
||||
|
||||
if(wzc.data[season].snowChance > 100)
|
||||
{
|
||||
wzc.data[season].snowChance = 25;
|
||||
sLog.outErrorDb("Weather for zone %u season %u has wrong snow chance > 100%",zone_id,season);
|
||||
sLog.outErrorDb("Weather for zone %u season %u has wrong snow chance > 100%%",zone_id,season);
|
||||
}
|
||||
|
||||
if(wzc.data[season].stormChance > 100)
|
||||
{
|
||||
wzc.data[season].stormChance = 25;
|
||||
sLog.outErrorDb("Weather for zone %u season %u has wrong storm chance > 100%",zone_id,season);
|
||||
sLog.outErrorDb("Weather for zone %u season %u has wrong storm chance > 100%%",zone_id,season);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6518,7 +6518,7 @@ bool ObjectMgr::LoadTrinityStrings(DatabaseType& db, char const* table, int32 mi
|
||||
|
||||
bar.step();
|
||||
|
||||
sLog.outString("");
|
||||
sLog.outString();
|
||||
if(min_value == MIN_TRINITY_STRING_ID) // error only in case internal strings
|
||||
sLog.outErrorDb(">> Loaded 0 trinity strings. DB table `%s` is empty. Cannot continue.",table);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user