Show
Ignore:
Timestamp:
11/19/08 13:43:30 (17 years ago)
Author:
yumileroy
Message:

[svn] * Avoid access to bag item prototype for getting bag size, use related item
update field instead as more fast source. source mangos.
* Further reduce of DB access in guild handlers.
* Multi-locale DBC extracting - source Foks

*** Devs not responsible if all your player items drop to the ground and get eaten by ants or rabbits.. or some kind of wierd ant-rabbits..

Original author: KingPin?
Date: 2008-11-06 08:20:26-06:00

Location:
trunk/contrib/extractor/libmpq
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/contrib/extractor/libmpq/mpq.cpp

    r168 r177  
    200200 * This function returns some useful file information. 
    201201 */ 
    202 int libmpq_file_info(mpq_archive *mpq_a, unsigned int infotype, const int number) { 
     202int libmpq_file_info(mpq_archive *mpq_a, unsigned int infotype, const int unsigned number) { 
    203203        int blockindex = number; //-1; 
    204204        int i = 0; 
  • trunk/contrib/extractor/libmpq/mpq.h

    r2 r177  
    199199extern int libmpq_archive_info(mpq_archive *mpq_a, unsigned int infotype); 
    200200//extern int libmpq_file_extract(mpq_archive *mpq_a, const int number); 
    201 extern int libmpq_file_info(mpq_archive *mpq_a, unsigned int infotype, const int number); 
     201extern int libmpq_file_info(mpq_archive *mpq_a, unsigned int infotype, const unsigned int number); 
    202202extern char *libmpq_file_name(mpq_archive *mpq_a, const int number); 
    203203extern int libmpq_file_number(mpq_archive *mpq_a, const char *name); 
  • trunk/contrib/extractor/libmpq/parser.cpp

    r2 r177  
    8080 
    8181        /* now search for comment in this line */ 
    82         for (i = 0; i < strlen(line); i++) { 
     82        for (i = 0; i < int(strlen(line)); i++) { 
    8383                if (line[i] == '#') { 
    8484                        pos = i - 1;