diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-04-17 20:16:12 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-04-17 20:16:12 +0000 |
commit | 1f8a899b0ae700a07df8ccf1165a093ab28a86ad (patch) | |
tree | 504343f82682367cac8015c9080d4daf1152b84c /crawl-ref/source/ghost.cc | |
parent | bbd60e62c3d09e8ad18eea92bc8007b808ee6440 (diff) | |
download | crawl-ref-1f8a899b0ae700a07df8ccf1165a093ab28a86ad.tar.gz crawl-ref-1f8a899b0ae700a07df8ccf1165a093ab28a86ad.zip |
Add minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9613 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/ghost.cc')
-rw-r--r-- | crawl-ref/source/ghost.cc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/crawl-ref/source/ghost.cc b/crawl-ref/source/ghost.cc index 5258e125ac..7e04e83ca9 100644 --- a/crawl-ref/source/ghost.cc +++ b/crawl-ref/source/ghost.cc @@ -367,17 +367,17 @@ static spell_type search_first_list(int ignore_spell) i < sizeof(search_order_conj) / sizeof(*search_order_conj); i++) { if (search_order_conj[i] == SPELL_NO_SPELL) - return SPELL_NO_SPELL; + return (SPELL_NO_SPELL); if (search_order_conj[i] == ignore_spell) continue; if (player_has_spell(search_order_conj[i])) - return search_order_conj[i]; + return (search_order_conj[i]); } - return SPELL_NO_SPELL; -} // end search_first_list() + return (SPELL_NO_SPELL); +} static spell_type search_second_list(int ignore_spell) { @@ -385,17 +385,17 @@ static spell_type search_second_list(int ignore_spell) i < sizeof(search_order_third) / sizeof(*search_order_third); i++) { if (search_order_third[i] == SPELL_NO_SPELL) - return SPELL_NO_SPELL; + return (SPELL_NO_SPELL); if (search_order_third[i] == ignore_spell) continue; if (player_has_spell(search_order_third[i])) - return search_order_third[i]; + return (search_order_third[i]); } - return SPELL_NO_SPELL; -} // end search_second_list() + return (SPELL_NO_SPELL); +} static spell_type search_third_list(int ignore_spell) { @@ -403,17 +403,17 @@ static spell_type search_third_list(int ignore_spell) i < sizeof(search_order_misc) / sizeof(*search_order_misc); i++) { if (search_order_misc[i] == SPELL_NO_SPELL) - return SPELL_NO_SPELL; + return (SPELL_NO_SPELL); if (search_order_misc[i] == ignore_spell) continue; if (player_has_spell(search_order_misc[i])) - return search_order_misc[i]; + return (search_order_misc[i]); } - return SPELL_NO_SPELL; -} // end search_third_list() + return (SPELL_NO_SPELL); +} // Used when creating ghosts: goes through and finds spells for the // ghost to cast. Death is a traumatic experience, so ghosts only @@ -452,7 +452,7 @@ void ghost_demon::add_spells() for (i = 0; i < NUM_MONSTER_SPELL_SLOTS; i++) spells[i] = translate_spell( spells[i] ); -} // end add_spells() +} // When passed the number for a player spell, returns the equivalent // monster spell. Returns SPELL_NO_SPELL on failure (no equivalent). |