diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-14 08:42:55 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-14 08:42:55 +0000 |
commit | a645ea7c241525d80c84cf3a843cd19dc29e8d17 (patch) | |
tree | 5f434cb49ab04806d92b6f88b3b2f85fc8b58f63 /crawl-ref/source/spl-book.h | |
parent | 30653817169d9b0e2b517ba9c3e6586962b0edee (diff) | |
download | crawl-ref-a645ea7c241525d80c84cf3a843cd19dc29e8d17.tar.gz crawl-ref-a645ea7c241525d80c84cf3a843cd19dc29e8d17.zip |
More code cleanups and type safety.
Fixed a semi-bug (undefined behaviour) in undead_cannot_memorise().
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1302 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-book.h')
-rw-r--r-- | crawl-ref/source/spl-book.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/spl-book.h b/crawl-ref/source/spl-book.h index a577b97f80..d06172cc8f 100644 --- a/crawl-ref/source/spl-book.h +++ b/crawl-ref/source/spl-book.h @@ -22,10 +22,10 @@ /* *********************************************************************** * called from: dungeon - effects - shopping * *********************************************************************** */ -char book_rarity(unsigned char which_book); +int book_rarity(unsigned char which_book); -bool is_valid_spell_in_book( unsigned int splbook, int spell ); +bool is_valid_spell_in_book( int splbook, int spell ); // updated 24may2000 {dlb} @@ -46,7 +46,7 @@ spell_type which_spell_in_book(int sbook_type, int spl); // returns amount practised (or -1 for abort) int staff_spell( int zap_device_2 ); -bool undead_cannot_memorise(unsigned char spell, unsigned char being); +bool undead_cannot_memorise(spell_type spell, char being); unsigned char spellbook_contents( item_def &book, int action, formatted_string *fs = NULL ); |