diff options
| author | azazel <none@none> | 2010-08-26 15:54:56 +0600 |
|---|---|---|
| committer | azazel <none@none> | 2010-08-26 15:54:56 +0600 |
| commit | 5fa14f58dceb3be78a5964c09eb17dc358c10c7b (patch) | |
| tree | 1c7b2c1d7f19ca7d56a602b023a1d3b724f2e72c /src/server/game/Server/Protocol | |
| parent | 6036166716d2d2cdfa0f5c27f8cfb7e1e65b0c8f (diff) | |
Core/Cleanup:
* move repeating code into separate method for storing locale strings in ObjectMgr (copy/paste sucks, you know)
* fix 'signed/unsigned' warnings (at least in VS)
* fix some other warnings and cleanup relative code
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/Server/Protocol')
3 files changed, 5 insertions, 5 deletions
diff --git a/src/server/game/Server/Protocol/Handlers/LootHandler.cpp b/src/server/game/Server/Protocol/Handlers/LootHandler.cpp index c67adcdde38..524c05be372 100644 --- a/src/server/game/Server/Protocol/Handlers/LootHandler.cpp +++ b/src/server/game/Server/Protocol/Handlers/LootHandler.cpp @@ -352,7 +352,7 @@ void WorldSession::DoLootRelease(uint64 lguid) else if (go->GetGoType() == GAMEOBJECT_TYPE_FISHINGHOLE) { // The fishing hole used once more go->AddUse(); // if the max usage is reached, will be despawned in next tick - if (go->GetUseCount() >= irand(go->GetGOInfo()->fishinghole.minSuccessOpens,go->GetGOInfo()->fishinghole.maxSuccessOpens)) + if (go->GetUseCount() >= urand(go->GetGOInfo()->fishinghole.minSuccessOpens, go->GetGOInfo()->fishinghole.maxSuccessOpens)) { go->SetLootState(GO_JUST_DEACTIVATED); } diff --git a/src/server/game/Server/Protocol/Handlers/NPCHandler.h b/src/server/game/Server/Protocol/Handlers/NPCHandler.h index 98e2fd218d3..00edb9abeab 100644 --- a/src/server/game/Server/Protocol/Handlers/NPCHandler.h +++ b/src/server/game/Server/Protocol/Handlers/NPCHandler.h @@ -65,15 +65,15 @@ struct GossipText struct PageTextLocale { - std::vector<std::string> Text; + StringVector Text; }; struct NpcTextLocale { NpcTextLocale() { Text_0.resize(8); Text_1.resize(8); } - std::vector<std::vector<std::string> > Text_0; - std::vector<std::vector<std::string> > Text_1; + std::vector<StringVector> Text_0; + std::vector<StringVector> Text_1; }; #endif diff --git a/src/server/game/Server/Protocol/Handlers/QueryHandler.cpp b/src/server/game/Server/Protocol/Handlers/QueryHandler.cpp index fa8b11d6429..a0e50487de4 100644 --- a/src/server/game/Server/Protocol/Handlers/QueryHandler.cpp +++ b/src/server/game/Server/Protocol/Handlers/QueryHandler.cpp @@ -484,7 +484,7 @@ void WorldSession::HandleQuestPOIQuery(WorldPacket& recv_data) WorldPacket data(SMSG_QUEST_POI_QUERY_RESPONSE, 4+(4+4)*count); data << uint32(count); // count - for (int i = 0; i < count; ++i) + for (uint32 i = 0; i < count; ++i) { uint32 questId; recv_data >> questId; // quest id |
