viewing paste storage.c raw doc | C

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- HEAD
+++ Modified In Working Tree
@@ -27,7 +27,7 @@
 static DBMap* guild_storage_db; // int guild_id -> struct guild_storage*
 
 /*==========================================
- * �q�ɓ��A�C�e���\�[�g
+ * Sort items in the warehouse
  *------------------------------------------*/
 static int storage_comp_item(const void *_i1, const void *_i2)
 {
@@ -54,9 +54,9 @@
 }
 
 /*==========================================
- * ����Ƃ�
+ * Init/Terminate
  *------------------------------------------*/
-int do_init_storage(void) // map.c::do_init()����Ă΂��
+int do_init_storage(void) // Called from map.c::do_init()
 {
    guild_storage_db=idb_alloc(DB_OPT_RELEASE_DATA);
    return 1;
@@ -110,7 +110,9 @@
    return 0;
 }
 
-// helper function
+/* helper function
+ * checking if 2 item structure are identique
+ */
 int compare_item(struct item *a, struct item *b)
 {
    if( a->nameid == b->nameid &&
Viewed 1144 times, submitted by lighta.