summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ghost.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-17 20:56:13 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-17 20:56:13 +0000
commit04a7ba1ee47556dcdf4d7ce56ebb7596f66cebfb (patch)
tree03d6ad1322f538de67aa90f73fe595e6e6399284 /crawl-ref/source/ghost.cc
parent2c81cf635de0477233ed2fa4f6b96f6e4350dce0 (diff)
downloadcrawl-ref-04a7ba1ee47556dcdf4d7ce56ebb7596f66cebfb.tar.gz
crawl-ref-04a7ba1ee47556dcdf4d7ce56ebb7596f66cebfb.zip
Simplify.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10699 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/ghost.cc')
-rw-r--r--crawl-ref/source/ghost.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/ghost.cc b/crawl-ref/source/ghost.cc
index a92e1fa1c2..52fd438f26 100644
--- a/crawl-ref/source/ghost.cc
+++ b/crawl-ref/source/ghost.cc
@@ -387,6 +387,8 @@ void ghost_demon::init_player_ghost()
best_skill_level = you.skills[best_skill];
xl = you.experience_level;
+ fly = mons_class_flies(MONS_PLAYER_GHOST);
+
add_spells();
}
@@ -572,7 +574,7 @@ void ghost_demon::find_extra_ghosts( std::vector<ghost_demon> &gs, int n )
{
// Bingo!
announce_ghost(*menv[i].ghost);
- gs.push_back( *menv[i].ghost );
+ gs.push_back(*menv[i].ghost);
--n;
}
}