Tools: Fix a typo and printf formats (there's no standard format for size_t)
This commit is contained in:
@@ -221,7 +221,7 @@ uint32 ReadMapDBC()
|
|||||||
map_ids[x].id = dbc.getRecord(x).getUInt(0);
|
map_ids[x].id = dbc.getRecord(x).getUInt(0);
|
||||||
strcpy(map_ids[x].name, dbc.getRecord(x).getString(1));
|
strcpy(map_ids[x].name, dbc.getRecord(x).getString(1));
|
||||||
}
|
}
|
||||||
printf("Done! (%d maps loaded)\n", map_count);
|
printf("Done! (%u maps loaded)\n", map_count);
|
||||||
return map_count;
|
return map_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -246,7 +246,7 @@ void ReadAreaTableDBC()
|
|||||||
|
|
||||||
maxAreaId = dbc.getMaxId();
|
maxAreaId = dbc.getMaxId();
|
||||||
|
|
||||||
printf("Done! (%d areas loaded)\n", area_count);
|
printf("Done! (%u areas loaded)\n", area_count);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReadLiquidTypeTableDBC()
|
void ReadLiquidTypeTableDBC()
|
||||||
@@ -267,7 +267,7 @@ void ReadLiquidTypeTableDBC()
|
|||||||
for(uint32 x = 0; x < liqTypeCount; ++x)
|
for(uint32 x = 0; x < liqTypeCount; ++x)
|
||||||
LiqType[dbc.getRecord(x).getUInt(0)] = dbc.getRecord(x).getUInt(3);
|
LiqType[dbc.getRecord(x).getUInt(0)] = dbc.getRecord(x).getUInt(3);
|
||||||
|
|
||||||
printf("Done! (%d LiqTypes loaded)\n", liqTypeCount);
|
printf("Done! (%u LiqTypes loaded)\n", liqTypeCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -364,7 +364,7 @@ uint8 liquid_flags[ADT_CELLS_PER_GRID][ADT_CELLS_PER_GRID];
|
|||||||
bool liquid_show[ADT_GRID_SIZE][ADT_GRID_SIZE];
|
bool liquid_show[ADT_GRID_SIZE][ADT_GRID_SIZE];
|
||||||
float liquid_height[ADT_GRID_SIZE+1][ADT_GRID_SIZE+1];
|
float liquid_height[ADT_GRID_SIZE+1][ADT_GRID_SIZE+1];
|
||||||
|
|
||||||
bool ConvertADT(char *filename, char *filename2, int /*cell_y*/, /*int cell_x*/, uint32 build)
|
bool ConvertADT(char *filename, char *filename2, int /*cell_y*/, int /*cell_x*/, uint32 build)
|
||||||
{
|
{
|
||||||
ADT_file adt;
|
ADT_file adt;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user