Skip to content

Commit

Permalink
World|Debug: Include decoration and mapped plane info in Subsector de…
Browse files Browse the repository at this point in the history
…scriptions
  • Loading branch information
danij-deng committed Aug 8, 2016
1 parent 856ab20 commit 023bc11
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion doomsday/apps/client/include/client/clientsubsector.h
Expand Up @@ -51,7 +51,7 @@ class ClientSubsector : public Subsector, public de::LightGrid::IBlockLightSourc
/**
* Returns a human-friendly, textual description of the subsector.
*/
de::String description() const;
de::String description() const override;

/**
* Returns @c true if @a height (up-axis offset) lies above/below the ceiling/floor
Expand Down
2 changes: 1 addition & 1 deletion doomsday/apps/client/include/world/subsector.h
Expand Up @@ -64,7 +64,7 @@ class Subsector
/**
* Returns a humman-friendly, textual description of the subsector.
*/
de::String description() const;
virtual de::String description() const;

/**
* Returns the automatically generated, unique identifier of the subsector.
Expand Down
2 changes: 1 addition & 1 deletion doomsday/apps/client/src/client/clientsubsector.cpp
Expand Up @@ -1445,7 +1445,7 @@ String ClientSubsector::description() const
}

DENG2_DEBUG_ONLY(
desc.prepend(String("[ClientSubsector 0x%1]\n").arg(de::dintptr(this), 0, 16));
desc.prepend(String(_E(b) "ClientSubsector " _E(.) "[0x%1]\n").arg(de::dintptr(this), 0, 16));
)
return Subsector::description() + "\n" + desc;
}
Expand Down
2 changes: 1 addition & 1 deletion doomsday/apps/client/src/render/decoration.cpp
Expand Up @@ -52,7 +52,7 @@ String Decoration::description() const
.arg(String("[0x%1]").arg(de::dintptr(&surface()), 0, 16));

#ifdef DENG2_DEBUG
desc.prepend(String("[Decoration 0x%1]\n").arg(de::dintptr(this), 0, 16));
desc.prepend(String(_E(b) "Decoration " _E(.) "[0x%1]\n").arg(de::dintptr(this), 0, 16));
#endif
return desc;
}
Expand Down
2 changes: 1 addition & 1 deletion doomsday/apps/client/src/render/lightdecoration.cpp
Expand Up @@ -46,7 +46,7 @@ String LightDecoration::description() const
{
String desc;
#ifdef DENG2_DEBUG
desc.prepend(String("[LightDecoration 0x%1]\n").arg(de::dintptr(this), 0, 16));
desc.prepend(String(_E(b) "LightDecoration " _E(.) "[0x%1]\n").arg(de::dintptr(this), 0, 16));
#endif
return Decoration::description() + "\n" + desc;
}
Expand Down
4 changes: 2 additions & 2 deletions doomsday/apps/client/src/world/base/sector.cpp
Expand Up @@ -671,8 +671,8 @@ D_CMD(InspectSector)
return false;
}

LOG_SCR_MSG(_E(b) "Sector %i" _E(.) " [%p]")
<< sec->indexInMap() << sec;
LOG_SCR_MSG(_E(b) "Sector %s" _E(.) " [%p]")
<< Id(sec->indexInMap()).asText() << sec;
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")
Expand Down
2 changes: 1 addition & 1 deletion doomsday/apps/client/src/world/base/subsector.cpp
Expand Up @@ -91,7 +91,7 @@ String Subsector::description() const
.arg(Rectangled(bounds().min, bounds().max).asText());

DENG2_DEBUG_ONLY(
desc.prepend(String("[Subsector 0x%1]\n").arg(de::dintptr(this), 0, 16));
desc.prepend(String(_E(b) "Subsector " _E(.) "[0x%1]\n").arg(de::dintptr(this), 0, 16));
)
return desc;
}
Expand Down
2 changes: 1 addition & 1 deletion doomsday/apps/client/src/world/base/surface.cpp
Expand Up @@ -172,7 +172,7 @@ String Surface::description() const
.arg(color().asText());

DENG2_DEBUG_ONLY(
desc.prepend(String("[Surface 0x%1]\n").arg(de::dintptr(this), 0, 16));
desc.prepend(String(_E(b) "Surface " _E(.) "[0x%1]\n").arg(de::dintptr(this), 0, 16));
)
return desc;
}
Expand Down

0 comments on commit 023bc11

Please sign in to comment.