1
This commit is contained in:
parent
f30bf003ad
commit
9240c61c92
@ -388,6 +388,17 @@ void NavMeshBuilder::BuildMapObstalce(BuilderParams& builder_params)
|
||||
if (status != DT_SUCCESS) {
|
||||
abort();
|
||||
}
|
||||
{
|
||||
bool uptodate = false;
|
||||
int update_count = 0;
|
||||
while (!uptodate) {
|
||||
tile_cache->update(0, builder_params.navmesh, &uptodate);
|
||||
++update_count;
|
||||
if (update_count > 10000 * 10) {
|
||||
abort();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case CT_Circle:
|
||||
@ -408,6 +419,17 @@ void NavMeshBuilder::BuildMapObstalce(BuilderParams& builder_params)
|
||||
if (status != DT_SUCCESS) {
|
||||
abort();
|
||||
}
|
||||
{
|
||||
bool uptodate = false;
|
||||
int update_count = 0;
|
||||
while (!uptodate) {
|
||||
tile_cache->update(0, builder_params.navmesh, &uptodate);
|
||||
++update_count;
|
||||
if (update_count > 10000 * 10) {
|
||||
abort();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
@ -416,5 +438,5 @@ void NavMeshBuilder::BuildMapObstalce(BuilderParams& builder_params)
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}//end for pair
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user