Skip to content

Commit

Permalink
World: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Jul 3, 2015
1 parent 6eb407c commit 8f965b8
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions doomsday/apps/client/src/world/line.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ String Line::Side::description() const
String flagsString;
if(!flagNames.isEmpty())
{
String flagsAsText = flagNames.join("|");
String const flagsAsText = flagNames.join("|");
flagsString = String(_E(l) " Flags: " _E(.)_E(i) "%1" _E(.)).arg(flagsAsText);
}

Expand All @@ -309,19 +309,15 @@ String Line::Side::description() const
.arg(hasSector() ? String::number(sector().indexInMap()) : "None")
.arg(DENG2_BOOL_YESNO(considerOneSided()))
.arg(flagsString);

if(hasSections())
forAllSurfaces([this, &text] (Surface &suf)
{
forAllSurfaces([this, &text] (Surface &suf)
{
String const name = &suf == &top () ? "Top"
: &suf == &middle() ? "Middle"
: "Bottom";
text += String("\n" _E(D) "%1:\n" _E(.)).arg(name)
+ suf.description();
return LoopContinue;
});
}
String const name = &suf == &top () ? "Top"
: &suf == &middle() ? "Middle"
: "Bottom";
text += String("\n" _E(D) "%1:\n" _E(.)).arg(name)
+ suf.description();
return LoopContinue;
});

return text;
}
Expand Down Expand Up @@ -1554,7 +1550,7 @@ D_CMD(InspectLine)
String flagsString;
if(!flagNames.isEmpty())
{
String flagsAsText = flagNames.join("|");
String const flagsAsText = flagNames.join("|");
flagsString = String(_E(l) " Flags: " _E(.)_E(i) "%1" _E(.)).arg(flagsAsText);
}

Expand Down

0 comments on commit 8f965b8

Please sign in to comment.