diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-04-22 15:58:36 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-04-22 15:58:36 +0000 |
commit | 13abff271666dcc566102311c3b9d237ea04f933 (patch) | |
tree | 499b2bb9a9f91a7b201f8e0102dc2befa5bcb057 /crawl-ref/source/files.cc | |
parent | 5c8009179acad07659f28a6995438b72a7a6c183 (diff) | |
download | crawl-ref-13abff271666dcc566102311c3b9d237ea04f933.tar.gz crawl-ref-13abff271666dcc566102311c3b9d237ea04f933.zip |
* Tweak Xom's ideas about what makes a funny or boring death.
* Add another option (*sigh*) covering whether W=T and P=R. (Defaults to
false.)
* Various spacing and comment fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9675 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r-- | crawl-ref/source/files.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index 18c9571f3b..55fb5f341c 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -1039,7 +1039,7 @@ static void _do_lost_items(level_area_type old_level_type) continue; // Item is in player intentory, so it's not lost. - if (item.pos.x == -1 && item.pos.y == -1) + if (item.pos == coord_def(-1,-1)) continue; item_was_lost(item); @@ -1633,14 +1633,14 @@ void _load_ghost(void) fclose(gfile); #if DEBUG_DIAGNOSTICS - mpr( "Loaded ghost.", MSGCH_DIAGNOSTICS ); + mpr("Loaded ghost.", MSGCH_DIAGNOSTICS); #endif // Remove bones file - ghosts are hardly permanent. unlink(cha_fil.c_str()); // Translate ghost to monster and place. - for (int imn = 0; imn < MAX_MONSTERS - 10 && !ghosts.empty(); imn++) + for (int imn = 0; imn < MAX_MONSTERS - 10 && !ghosts.empty(); ++imn) { if (menv[imn].type != -1) continue; |