From a645ea7c241525d80c84cf3a843cd19dc29e8d17 Mon Sep 17 00:00:00 2001 From: haranp Date: Sat, 14 Apr 2007 08:42:55 +0000 Subject: 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 --- crawl-ref/source/spl-book.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/spl-book.h') 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 ); -- cgit v1.2.3-54-g00ecf