summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/maps.cc
diff options
context:
space:
mode:
authorChris Oelmueller <chris.oelmueller@gmail.com>2013-07-26 00:23:19 +0200
committerNeil Moore <neil@s-z.org>2013-07-28 12:52:45 -0400
commita2406f0aada94b5ef9fce04820fa88a257ce3e2a (patch)
tree6082851ab0e622c961b20fe21c52d165744b5d66 /crawl-ref/source/maps.cc
parentf61e71f529e8ec9710ddd2fe4b89d64ca5481858 (diff)
downloadcrawl-ref-a2406f0aada94b5ef9fce04820fa88a257ce3e2a.tar.gz
crawl-ref-a2406f0aada94b5ef9fce04820fa88a257ce3e2a.zip
Pad some ternary operators with spaces on the left
While this is not explicitly mentioned as a rule in coding_conventions, all examples listed there apply it as well. The dungeon.cc chunk did overflow max. columns before already, but could still be looked at.
Diffstat (limited to 'crawl-ref/source/maps.cc')
-rw-r--r--crawl-ref/source/maps.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/maps.cc b/crawl-ref/source/maps.cc
index b0ffdfe892..d1b192e40e 100644
--- a/crawl-ref/source/maps.cc
+++ b/crawl-ref/source/maps.cc
@@ -638,7 +638,7 @@ static map_section_type _apply_vault_definition(
return MAP_NONE;
const map_section_type orient = def.orient;
- return (orient == MAP_NONE? MAP_NORTH : orient);
+ return (orient == MAP_NONE ? MAP_NORTH : orient);
}
///////////////////////////////////////////////////////////////////////////
@@ -869,13 +869,13 @@ void map_selector::announce(const map_def *vault) const
else
{
const char *format =
- sel == PLACE? "[PLACE] Found map %s for %s" :
- sel == DEPTH? "[DEPTH] Found random map %s for %s" :
+ sel == PLACE ? "[PLACE] Found map %s for %s" :
+ sel == DEPTH ? "[DEPTH] Found random map %s for %s" :
"[TAG] Found map %s tagged '%s'";
mprf(MSGCH_DIAGNOSTICS, format,
vault->name.c_str(),
- sel == TAG? tag.c_str() : place.describe().c_str());
+ sel == TAG ? tag.c_str() : place.describe().c_str());
}
}
#endif