From 0b9548a1cc429a336481edaf0b447d86aeb15c9b Mon Sep 17 00:00:00 2001 From: Shauren Date: Mon, 17 Apr 2017 00:03:44 +0200 Subject: Core: Updated GameTables to 7.2.0 Tools/Extractors: Updated to 7.2.0 Tools/ConnectionPatcher: Updated patterns to 7.2.0 Supported version is now 7.2.0.23911 --- src/server/scripts/Commands/cs_debug.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/server/scripts/Commands') diff --git a/src/server/scripts/Commands/cs_debug.cpp b/src/server/scripts/Commands/cs_debug.cpp index a56e687757c..1992235e257 100644 --- a/src/server/scripts/Commands/cs_debug.cpp +++ b/src/server/scripts/Commands/cs_debug.cpp @@ -133,17 +133,16 @@ public: } // Dump camera locations - std::unordered_map::const_iterator itr = sFlyByCameraStore.find(cineSeq->Camera[0]); - if (itr != sFlyByCameraStore.end()) + if (std::vector const* flyByCameras = GetFlyByCameras(cineSeq->Camera[0])) { handler->PSendSysMessage("Waypoints for sequence %u, camera %u", id, cineSeq->Camera[0]); uint32 count = 1; - for (FlyByCamera cam : itr->second) + for (FlyByCamera const& cam : *flyByCameras) { handler->PSendSysMessage("%02u - %7ums [%f, %f, %f] Facing %f (%f degrees)", count, cam.timeStamp, cam.locations.x, cam.locations.y, cam.locations.z, cam.locations.w, cam.locations.w * (180 / M_PI)); count++; } - handler->PSendSysMessage("%u waypoints dumped", itr->second.size()); + handler->PSendSysMessage(SZFMTD " waypoints dumped", flyByCameras->size()); } handler->GetSession()->GetPlayer()->SendCinematicStart(id); -- cgit v1.2.3