From 382a6d84cbf47ee336745cac2f413d7db9a06de0 Mon Sep 17 00:00:00 2001 From: danij Date: Mon, 8 Aug 2016 00:29:54 +0100 Subject: [PATCH] World|Debug: Include bounding box info in Sector/Subsector descriptions --- doomsday/apps/client/src/world/base/plane.cpp | 2 +- doomsday/apps/client/src/world/base/sector.cpp | 6 ++++-- doomsday/apps/client/src/world/base/subsector.cpp | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/doomsday/apps/client/src/world/base/plane.cpp b/doomsday/apps/client/src/world/base/plane.cpp index 897dd6c0ed..e849ebc684 100644 --- a/doomsday/apps/client/src/world/base/plane.cpp +++ b/doomsday/apps/client/src/world/base/plane.cpp @@ -183,7 +183,7 @@ Plane::Plane(Sector §or, Vector3f const &normal, ddouble height) String Plane::description() const { - auto desc = String (_E(l) "Sector: " _E(.)_E(i) "%1" _E(.) + auto desc = String( _E(l) "Sector: " _E(.)_E(i) "%1" _E(.) " " _E(l) "Height: " _E(.)_E(i) "%2" _E(.) " " _E(l) "Height Target: " _E(.)_E(i) "%3" _E(.) " " _E(l) "Speed: " _E(.)_E(i) "%4" _E(.)) diff --git a/doomsday/apps/client/src/world/base/sector.cpp b/doomsday/apps/client/src/world/base/sector.cpp index edd7c44635..a60e88bf86 100644 --- a/doomsday/apps/client/src/world/base/sector.cpp +++ b/doomsday/apps/client/src/world/base/sector.cpp @@ -673,8 +673,10 @@ D_CMD(InspectSector) LOG_SCR_MSG(_E(b) "Sector %i" _E(.) " [%p]") << sec->indexInMap() << sec; - LOG_SCR_MSG(_E(l) "Light Level: " _E(.)_E(i) "%f" _E(.) - _E(l) " Light Color: " _E(.)_E(i) "%s") + LOG_SCR_MSG( _E(l) "Bounds: " _E(.)_E(i) "%s" _E(.) + " " _E(l) "Light Color: " _E(.)_E(i) "%s" _E(.) + " " _E(l) "Light Level: " _E(.)_E(i) "%f") + << Rectangled(sec->bounds().min, sec->bounds().max).asText() << sec->lightLevel() << sec->lightColor().asText(); if (sec->planeCount()) diff --git a/doomsday/apps/client/src/world/base/subsector.cpp b/doomsday/apps/client/src/world/base/subsector.cpp index 014d89c0c5..11cc6003c5 100644 --- a/doomsday/apps/client/src/world/base/subsector.cpp +++ b/doomsday/apps/client/src/world/base/subsector.cpp @@ -88,7 +88,7 @@ String Subsector::description() const " " _E(l) "Bounds: " _E(.) _E(i) "%3" _E(.)) .arg(d->id.asText()) .arg(sector().indexInMap()) - .arg((Vector2d(bounds().max) - Vector2d(bounds().min)).asText()); + .arg(Rectangled(bounds().min, bounds().max).asText()); DENG2_DEBUG_ONLY( desc.prepend(String("[Subsector 0x%1]\n").arg(de::dintptr(this), 0, 16));