mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
Replaced hardcoded maxareaid with dbc data in maps extractor.
Reduced number of cells (doubled visibility distance).
This commit is contained in:
parent
4c4f80df5a
commit
99db25c9eb
7 changed files with 15 additions and 10 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue