summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tags.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-05-12 18:00:32 -0400
committerNeil Moore <neil@s-z.org>2014-05-12 18:11:14 -0400
commit9bc6d1f085097d001f0ff31f9bb900bb71957212 (patch)
treeca6c52fa82eac19c98baec7ce93b557e4d5be22e /crawl-ref/source/tags.cc
parentbca6d2d0ab66b008f7f1664769ba4a3a655a3444 (diff)
downloadcrawl-ref-9bc6d1f085097d001f0ff31f9bb900bb71957212.tar.gz
crawl-ref-9bc6d1f085097d001f0ff31f9bb900bb71957212.zip
Formatting fixes (add braces).
This fixes all the instances caught by unbrace.
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r--crawl-ref/source/tags.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc
index 38a50b28d4..6e7ab04f37 100644
--- a/crawl-ref/source/tags.cc
+++ b/crawl-ref/source/tags.cc
@@ -2118,7 +2118,9 @@ static void tag_read_you(reader &th)
#if TAG_MAJOR_VERSION == 34
if (th.getMinorVersion() >= TAG_MINOR_GARGOYLE_DR
&& th.getMinorVersion() < TAG_MINOR_RM_GARGOYLE_DR)
+ {
unmarshallInt(th); // Slough an integer.
+ }
if (th.getMinorVersion() < TAG_MINOR_AUTOMATIC_MANUALS)
{
@@ -3007,7 +3009,9 @@ static void tag_read_you_items(reader &th)
if (th.getMinorVersion() < TAG_MINOR_BOOK_ID
&& i == OBJ_BOOKS)
+ {
x = ID_UNKNOWN_TYPE;
+ }
else
x = unmarshallUByte(th);
@@ -5027,10 +5031,12 @@ static void tag_read_level_monsters(reader &th)
}
int midx = mgrd(m.pos());
if (midx != NON_MONSTER)
+ {
mprf(MSGCH_ERROR, "(%d, %d) for %s already occupied by %s",
m.pos().x, m.pos().y,
m.name(DESC_PLAIN, true).c_str(),
menv[midx].name(DESC_PLAIN, true).c_str());
+ }
#endif
mgrd(m.pos()) = i;
}