This commit is contained in:
aozhiwei 2023-02-01 14:35:36 +08:00
parent 93495e51e0
commit ea813bf43c

View File

@ -701,8 +701,6 @@ void MapInstance::MarkMapAreaPolys()
void MapInstance::LoadHeightData()
{
#if 1
{
FILE *fp = fopen(("main3d_mapHeight.txt"), "rb");
if (!fp) {
A8_ABORT();
@ -715,6 +713,7 @@ void MapInstance::LoadHeightData()
navmesh::HeightList list;
list.ParseFromArray(p, file_size);
if (list.width() != (int)GetMapMeta()->map_width() ||
list.height() != (int)GetMapMeta()->map_height()) {
A8_ABORT();
@ -789,6 +788,4 @@ void MapInstance::LoadHeightData()
free(p);
fclose(fp);
}
#endif
}