aboutsummaryrefslogtreecommitdiff
path: root/src/game/TicketHandler.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-04-14 17:48:58 +0200
committerMachiavelli <none@none>2009-04-14 17:48:58 +0200
commitecbaf6483d453e0d80ab0b24f27232fbda1a3c4c (patch)
treeba5ec002452215e375dcb6f367adf98c57f0b46b /src/game/TicketHandler.cpp
parente7ac066211a25d90039695badb0d9724fa610256 (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 f8e0ef689ff..f4af95bb169 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);
}
-