summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/randart.h
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-13 07:40:38 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-13 07:40:38 +0000
commit0a577362dfe772e6e13eebce39489327b282c98d (patch)
tree37a711b4df281a28dd74385da6b3ceb02c211389 /crawl-ref/source/randart.h
parent53fa153719a82b238120b85f3e16644c31a67ff4 (diff)
downloadcrawl-ref-0a577362dfe772e6e13eebce39489327b282c98d.tar.gz
crawl-ref-0a577362dfe772e6e13eebce39489327b282c98d.zip
Cleaned up some of the randart code.
Fixed a free-without-malloc security issue (of art_n.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1291 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/randart.h')
-rw-r--r--crawl-ref/source/randart.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/crawl-ref/source/randart.h b/crawl-ref/source/randart.h
index 9a7d0d6344..5ea7eabe67 100644
--- a/crawl-ref/source/randart.h
+++ b/crawl-ref/source/randart.h
@@ -51,11 +51,7 @@ const char *randart_ring_name( const item_def &item );
* *********************************************************************** */
const char *unrandart_descrip( char which_descrip, const item_def &item );
-/* ***********************************************************************
- * called from: files
- * *********************************************************************** */
-char does_unrandart_exist(int whun);
-
+bool does_unrandart_exist(int whun);
/* ***********************************************************************
* called from: dungeon
@@ -85,7 +81,7 @@ bool make_item_unrandart( item_def &item, int unrand_index );
/* ***********************************************************************
* called from: files - newgame
* *********************************************************************** */
-void set_unrandart_exist(int whun, char is_exist);
+void set_unrandart_exist(int whun, bool is_exist);
/* ***********************************************************************
@@ -93,13 +89,6 @@ void set_unrandart_exist(int whun, char is_exist);
* *********************************************************************** */
void standard_name_armour( const item_def &item, char glorg[ITEMNAME_SIZE] );
-
-/* ***********************************************************************
- * called from: itemname
- * *********************************************************************** */
-void standard_name_weap(unsigned char item_typ, char glog[ITEMNAME_SIZE]);
-
-
/* ***********************************************************************
* called from: items
* *********************************************************************** */