From 3719e3c8c35ad7bd924373512c25ce7828d62a03 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 13 Apr 2007 14:08:38 +0000 Subject: Fixed bad grammar on shield block messages in melee. Split up Abyss/Pan/Labyrinth save files. The only practical use right now is to be able to correctly place Abyss and Pan ghosts. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1295 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/ghost.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'crawl-ref/source/ghost.cc') diff --git a/crawl-ref/source/ghost.cc b/crawl-ref/source/ghost.cc index 5216cc4352..d09f1484ac 100644 --- a/crawl-ref/source/ghost.cc +++ b/crawl-ref/source/ghost.cc @@ -453,6 +453,7 @@ std::vector ghost_demon::find_ghosts() ghost_demon player; player.init_player_ghost(); + announce_ghost(player); gs.push_back(player); find_extra_ghosts( gs, n_extra_ghosts() ); @@ -477,6 +478,7 @@ void ghost_demon::find_transiting_ghosts( const monsters &m = i->mons; if (m.ghost.get()) { + announce_ghost(*m.ghost); gs.push_back(*m.ghost); --n; } @@ -485,6 +487,13 @@ void ghost_demon::find_transiting_ghosts( } } +void ghost_demon::announce_ghost(const ghost_demon &g) +{ +#ifdef DEBUG_DIAGNOSTICS + mprf(MSGCH_DIAGNOSTICS, "Saving ghost: %s", g.name.c_str()); +#endif +} + void ghost_demon::find_extra_ghosts( std::vector &gs, int n ) { for (int i = 0; n > 0 && i < MAX_MONSTERS; ++i) @@ -495,6 +504,7 @@ void ghost_demon::find_extra_ghosts( std::vector &gs, int n ) if (menv[i].type == MONS_PLAYER_GHOST && menv[i].ghost.get()) { // Bingo! + announce_ghost(*menv[i].ghost); gs.push_back( *menv[i].ghost ); --n; } -- cgit v1.2.3-54-g00ecf