Fix for gaps in path files during add

This commit is contained in:
KimLS
2015-03-24 16:37:12 -07:00
parent 0cf5cca415
commit 9ef4825a72
+5
View File
@@ -1478,6 +1478,11 @@ int32 PathManager::AddNode(float x, float y, float z, float best_z, int32 reques
{
for(uint32 i = 0; i < Head.PathNodeCount; ++i)
{
if(PathNodes[i].id - new_id > 1) {
new_id = PathNodes[i].id - 1;
break;
}
if(PathNodes[i].id > new_id)
new_id = PathNodes[i].id;
}