summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/it_use3.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-01 11:54:48 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-01 11:54:48 -0600
commit842722ca2c40bb838d908677677d6096963e879d (patch)
treedc623ad38ffb0a39034cb704b49cbfa461d1c40c /crawl-ref/source/it_use3.cc
parentfde948014517c0486207e6b369e777502f2e5511 (diff)
downloadcrawl-ref-842722ca2c40bb838d908677677d6096963e879d.tar.gz
crawl-ref-842722ca2c40bb838d908677677d6096963e879d.zip
Add minor cosmetic fixes.
Diffstat (limited to 'crawl-ref/source/it_use3.cc')
-rw-r--r--crawl-ref/source/it_use3.cc15
1 files changed, 7 insertions, 8 deletions
diff --git a/crawl-ref/source/it_use3.cc b/crawl-ref/source/it_use3.cc
index d05cab0499..d87aa7df09 100644
--- a/crawl-ref/source/it_use3.cc
+++ b/crawl-ref/source/it_use3.cc
@@ -148,25 +148,24 @@ void shadow_lantern_effect()
create_monster(mgen_data(MONS_SHADOW, BEH_FRIENDLY, 2, 0, you.pos(),
MHITYOU));
- item_def * lantern = you.weapon();
+ item_def *lantern = you.weapon();
- // This should only get called when we are wielding a lantern
- // of shadows.
- ASSERT(lantern && lantern->base_type ==OBJ_MISCELLANY
- && lantern->sub_type == MISC_LANTERN_OF_SHADOWS);
+ // This should only get called when we are wielding a lantern of
+ // shadows.
+ ASSERT(lantern && lantern->base_type == OBJ_MISCELLANY
+ && lantern->sub_type == MISC_LANTERN_OF_SHADOWS);
bool known = fully_identified(*lantern);
did_god_conduct(DID_NECROMANCY, 1, known);
- // ID the lantern and refresh the weapon display
- if(!known)
+ // ID the lantern and refresh the weapon display.
+ if (!known)
{
set_ident_type(*lantern, ID_KNOWN_TYPE);
set_ident_flags(*lantern, ISFLAG_IDENT_MASK);
you.wield_change = true;
}
-
}
}