aboutsummaryrefslogtreecommitdiff
path: root/src/game/TicketHandler.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-04-14 17:29:54 +0200
committerMachiavelli <none@none>2009-04-14 17:29:54 +0200
commit348339770e7e04f4a1a3bef7ba45fef83821c7a4 (patch)
treec8938eead970f21f305f21831e0ede9950a12a0a /src/game/TicketHandler.cpp
parentcebdaeb68e9bda4c73e1d6e409d50bc04eb1d83b (diff)
* Ticket system update;
- Add map, x, y, z coordinate data to ticket upon creation - Add command .go ticket to teleport to the coordinates where the ticket was created - Move InitTicketID() to the class constructor instead of at every LoadGMTickets call - Minor code cleanup --HG-- branch : trunk
Diffstat (limited to 'src/game/TicketHandler.cpp')
-rw-r--r--src/game/TicketHandler.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/TicketHandler.cpp b/src/game/TicketHandler.cpp
index d2df52f1c1c..640faacc155 100644
--- a/src/game/TicketHandler.cpp
+++ b/src/game/TicketHandler.cpp
@@ -61,6 +61,10 @@ void WorldSession::HandleGMTicketCreateOpcode( WorldPacket & recv_data )
ticket->playerGuid = GetPlayer()->GetGUID();
ticket->message = ticketText;
ticket->createtime = time(NULL);
+ ticket->map = map;
+ ticket->pos_x = x;
+ ticket->pos_y = y;
+ ticket->pos_z = z;
ticket->timestamp = time(NULL);
ticket->closed = 0;
ticket->assignedToGM = 0;
@@ -189,4 +193,3 @@ void WorldSession::HandleGMTicketSystemStatusOpcode( WorldPacket & /*recv_data*/
// Send Packet
SendPacket(&data);
}
-