mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-22 06:22:28 +00:00
Fix for gaps in path files during add
This commit is contained in:
parent
0cf5cca415
commit
9ef4825a72
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user