From 99044f7005cdf050666e67ca564fd6c584ad6c40 Mon Sep 17 00:00:00 2001 From: KingPin Date: Mon, 10 Nov 2008 11:01:48 -0600 Subject: [PATCH] [svn] * Fixed tickethamdeling stuff. * ArenaDb access,ticketcache, Client inventory position data cleanup from Mangos. --HG-- branch : trunk --- src/game/GMTicketHandler.cpp | 4 ++-- src/game/Makefile.am | 3 +++ win/VC71/game.vcproj | 9 +++++++++ win/VC80/game.vcproj | 12 ++++++++++++ win/VC90/game.vcproj | 12 ++++++++++++ 5 files changed, 38 insertions(+), 2 deletions(-) diff --git a/src/game/GMTicketHandler.cpp b/src/game/GMTicketHandler.cpp index 8d16fe3697..8718226464 100644 --- a/src/game/GMTicketHandler.cpp +++ b/src/game/GMTicketHandler.cpp @@ -128,8 +128,8 @@ void WorldSession::HandleGMTicketCreateOpcode( WorldPacket & recv_data ) DEBUG_LOG("update the ticket\n"); //TODO: Guard player map - HashMapHolder::MapType &m = ObjectAccessor::Instance().GetPlayers(); - for(HashMapHolder::MapType::iterator itr = m.begin(); itr != m.end(); ++itr) + HashMapHolder::MapType &m = ObjectAccessor::Instance().GetPlayers(); + for(HashMapHolder::MapType::iterator itr = m.begin(); itr != m.end(); ++itr) { if(itr->second->GetSession()->GetSecurity() >= SEC_GAMEMASTER && itr->second->isAcceptTickets()) ChatHandler(itr->second).PSendSysMessage(LANG_COMMAND_TICKETNEW,GetPlayer()->GetName()); diff --git a/src/game/Makefile.am b/src/game/Makefile.am index ddadee44f9..f79eede504 100644 --- a/src/game/Makefile.am +++ b/src/game/Makefile.am @@ -117,6 +117,9 @@ $(srcdir)/GlobalEvents.h \ $(srcdir)/GMTicketHandler.cpp \ $(srcdir)/GMTicketMgr.cpp \ $(srcdir)/GMTicketMgr.h \ +$(srcdir)/GMTicketHandler.cpp \ +$(srcdir)/GMTicketMgr.cpp \ +$(srcdir)/GMTicketMgr.h \ $(srcdir)/GossipDef.cpp \ $(srcdir)/GossipDef.h \ $(srcdir)/GridDefines.h \ diff --git a/win/VC71/game.vcproj b/win/VC71/game.vcproj index 2a260c26d6..6c14ab272d 100644 --- a/win/VC71/game.vcproj +++ b/win/VC71/game.vcproj @@ -252,6 +252,9 @@ + + @@ -613,6 +616,12 @@ + + + + diff --git a/win/VC80/game.vcproj b/win/VC80/game.vcproj index e0778b0710..9ce5146d8b 100644 --- a/win/VC80/game.vcproj +++ b/win/VC80/game.vcproj @@ -514,6 +514,10 @@ RelativePath="..\..\src\game\GameEvent.h" > + + @@ -974,6 +978,14 @@ RelativePath="..\..\src\game\GameObject.h" > + + + + diff --git a/win/VC90/game.vcproj b/win/VC90/game.vcproj index 1dde7c90d4..9ca7efc817 100644 --- a/win/VC90/game.vcproj +++ b/win/VC90/game.vcproj @@ -519,6 +519,10 @@ RelativePath="..\..\src\game\GameEvent.h" > + + @@ -979,6 +983,14 @@ RelativePath="..\..\src\game\GameObject.h" > + + + +