Replaced hardcoded maxareaid with dbc data in maps extractor.

Reduced number of cells (doubled visibility distance).
This commit is contained in:
tomrus88 2008-12-04 19:22:50 +03:00
parent 4c4f80df5a
commit 99db25c9eb
7 changed files with 15 additions and 10 deletions

View file

@ -31,6 +31,7 @@ map_id * map_ids;
uint16 * areas;
char output_path[128]=".";
char input_path[128]=".";
uint32 maxAreaId = 0;
enum Extract
{
@ -146,6 +147,8 @@ void ReadAreaTableDBC()
for(unsigned int x=0; x<area_count;++x)
areas[dbc.getRecord(x).getUInt(0)] = dbc.getRecord(x).getUInt(3);
maxAreaId = dbc.getMaxId();
printf("Done! (%u areas loaded)\n", area_count);
}