summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-book.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-10 15:29:56 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-10 15:29:56 +0000
commitf6b8a1eea325bf2a8e9e81bf8d57c84d22787e6c (patch)
treed460601ff4a8306957df99184cf69d31df171f23 /crawl-ref/source/spl-book.cc
parent8fcf9242d71cf3fa44ad46bc5e37313e8b6b73b9 (diff)
downloadcrawl-ref-f6b8a1eea325bf2a8e9e81bf8d57c84d22787e6c.tar.gz
crawl-ref-f6b8a1eea325bf2a8e9e81bf8d57c84d22787e6c.zip
Clean-up (renaming static methods and comments) in a number of files.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5703 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r--crawl-ref/source/spl-book.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc
index aaa7b2d5ed..d644675641 100644
--- a/crawl-ref/source/spl-book.cc
+++ b/crawl-ref/source/spl-book.cc
@@ -954,7 +954,7 @@ bool is_valid_spell_in_book( int splbook, int spell )
return which_spell_in_book(splbook, spell) != SPELL_NO_SPELL;
}
-static int which_spellbook( void )
+static int _which_spellbook( void )
{
int book = -1;
const int avail_levels = player_spell_levels();
@@ -996,7 +996,7 @@ static int which_spellbook( void )
}
return (book);
-} // end which_spellbook()
+}
// Returns false if the player cannot read/memorise from the book,
// and true otherwise. -- bwr
@@ -1222,7 +1222,7 @@ bool learn_spell(int book)
}
if (book < 0)
- book = which_spellbook();
+ book = _which_spellbook();
if (book < 0) // still -1?
return (false);