aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Chat/Commands
diff options
context:
space:
mode:
authorlinencloth <none@none>2010-10-24 02:55:50 +0200
committerlinencloth <none@none>2010-10-24 02:55:50 +0200
commit07fa1bcbdfe65def200c640a6f3e52b755c3b603 (patch)
treef2bd8f5b7caadae27b97c97375da1a78c30b4194 /src/server/game/Chat/Commands
parent153352aac073b1bd4c1b6fb6515b3de6fa4ae1f4 (diff)
Core/Creature: Implement FarTeleportTo (teleport to an other map)
Core/Transport: Cleanup and optimize transport and passenger handling - Only transports will be active objects - Reduced cpu and memory usage - Using FarTeleportTo for creature passengers at transport teleportation - Creatures won't be recreated on teleport --HG-- branch : trunk
Diffstat (limited to 'src/server/game/Chat/Commands')
-rwxr-xr-xsrc/server/game/Chat/Commands/Level2.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/server/game/Chat/Commands/Level2.cpp b/src/server/game/Chat/Commands/Level2.cpp
index 8bb73d2c4dd..2e52a9e5c96 100755
--- a/src/server/game/Chat/Commands/Level2.cpp
+++ b/src/server/game/Chat/Commands/Level2.cpp
@@ -965,22 +965,8 @@ bool ChatHandler::HandleNpcAddCommand(const char* args)
{
uint32 tguid = chr->GetTransport()->AddNPCPassenger(0, id, chr->GetTransOffsetX(), chr->GetTransOffsetY(), chr->GetTransOffsetZ(), chr->GetTransOffsetO());
if (tguid > 0)
- {
WorldDatabase.PQuery("INSERT INTO creature_transport (guid, npc_entry, transport_entry, TransOffsetX, TransOffsetY, TransOffsetZ, TransOffsetO) values (%u, %u, %f, %f, %f, %f, %u)", tguid, id, chr->GetTransport()->GetEntry(), chr->GetTransOffsetX(), chr->GetTransOffsetY(), chr->GetTransOffsetZ(), chr->GetTransOffsetO());
- TransportCreatureProto *transportCreatureProto = new TransportCreatureProto;
- transportCreatureProto->guid = tguid;
- transportCreatureProto->npc_entry = id;
- uint32 transportEntry = chr->GetTransport()->GetEntry();
- transportCreatureProto->TransOffsetX = chr->GetTransOffsetX();
- transportCreatureProto->TransOffsetY = chr->GetTransOffsetY();
- transportCreatureProto->TransOffsetZ = chr->GetTransOffsetZ();
- transportCreatureProto->TransOffsetO = chr->GetTransOffsetO();
- transportCreatureProto->emote = 0;
-
- sMapMgr.m_TransportNPCMap[transportEntry].insert(transportCreatureProto);
- sMapMgr.m_TransportNPCs.insert(transportCreatureProto);
- }
return true;
}