diff options
| author | Shauren <shauren.trinity@gmail.com> | 2017-04-17 00:03:44 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2017-04-17 00:03:44 +0200 |
| commit | 0b9548a1cc429a336481edaf0b447d86aeb15c9b (patch) | |
| tree | 636deb1563fc9e23891fe4444248eec68103c3ab /src/server/scripts/Commands | |
| parent | 7e8583ee8146d2a28d332d515df28a39a2911c01 (diff) | |
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
Diffstat (limited to 'src/server/scripts/Commands')
| -rw-r--r-- | src/server/scripts/Commands/cs_debug.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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<uint32, FlyByCameraCollection>::const_iterator itr = sFlyByCameraStore.find(cineSeq->Camera[0]); - if (itr != sFlyByCameraStore.end()) + if (std::vector<FlyByCamera> 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); |
