1
This commit is contained in:
parent
93495e51e0
commit
ea813bf43c
@ -700,8 +700,6 @@ void MapInstance::MarkMapAreaPolys()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MapInstance::LoadHeightData()
|
void MapInstance::LoadHeightData()
|
||||||
{
|
|
||||||
#if 1
|
|
||||||
{
|
{
|
||||||
FILE *fp = fopen(("main3d_mapHeight.txt"), "rb");
|
FILE *fp = fopen(("main3d_mapHeight.txt"), "rb");
|
||||||
if (!fp) {
|
if (!fp) {
|
||||||
@ -715,6 +713,7 @@ void MapInstance::LoadHeightData()
|
|||||||
|
|
||||||
navmesh::HeightList list;
|
navmesh::HeightList list;
|
||||||
list.ParseFromArray(p, file_size);
|
list.ParseFromArray(p, file_size);
|
||||||
|
|
||||||
if (list.width() != (int)GetMapMeta()->map_width() ||
|
if (list.width() != (int)GetMapMeta()->map_width() ||
|
||||||
list.height() != (int)GetMapMeta()->map_height()) {
|
list.height() != (int)GetMapMeta()->map_height()) {
|
||||||
A8_ABORT();
|
A8_ABORT();
|
||||||
@ -790,5 +789,3 @@ void MapInstance::LoadHeightData()
|
|||||||
free(p);
|
free(p);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user