mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-24 08:06:13 +00:00
Visual Studio 2013 compilation support for Ryzom Tools
This commit is contained in:
parent
8a2f4ea737
commit
068b7bf77a
2 changed files with 7 additions and 7 deletions
|
@ -100,7 +100,7 @@ I16x16Layer *I16x16Layer::compress(I16x16Layer *layer, sint32 blank)
|
||||||
|
|
||||||
map<sint32, uint>::iterator it = count.find(val);
|
map<sint32, uint>::iterator it = count.find(val);
|
||||||
if (it == count.end())
|
if (it == count.end())
|
||||||
count.insert(make_pair<sint32, uint>(val, 1));
|
count.insert(std::pair<sint32, uint>(val, 1));
|
||||||
else
|
else
|
||||||
++((*it).second);
|
++((*it).second);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1469,7 +1469,7 @@ bool CWorldMap::findAStarPath(CWorldPosition const& start, CWorldPosition const&
|
||||||
uint father = (uint)nodes.size()-1;
|
uint father = (uint)nodes.size()-1;
|
||||||
|
|
||||||
// Add start topology to visited nodes (father holds start topo node index for the moment)
|
// Add start topology to visited nodes (father holds start topo node index for the moment)
|
||||||
visited.insert(make_pair<CTopology::TTopologyId,uint>(startTopo, father));
|
visited.insert(std::pair<CTopology::TTopologyId, uint>(startTopo, father));
|
||||||
// Push start node in the heap with a zero cost
|
// Push start node in the heap with a zero cost
|
||||||
heap.push(0.0f, father);
|
heap.push(0.0f, father);
|
||||||
|
|
||||||
|
@ -1562,7 +1562,7 @@ bool CWorldMap::findAStarPath(CWorldPosition const& start, CWorldPosition const&
|
||||||
// Add node to heap with a computed f(n)=g(n)+h(n)
|
// Add node to heap with a computed f(n)=g(n)+h(n)
|
||||||
heap.push(distance + heuristic, child);
|
heap.push(distance + heuristic, child);
|
||||||
// Add node to visited
|
// Add node to visited
|
||||||
visited.insert(make_pair<CTopology::TTopologyId,uint>(next, child));
|
visited.insert(std::pair<CTopology::TTopologyId, uint>(next, child));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1633,7 +1633,7 @@ bool CWorldMap::findAStarPath(const CTopology::TTopologyId &start, const CTopolo
|
||||||
uint father = (uint)nodes.size()-1;
|
uint father = (uint)nodes.size()-1;
|
||||||
|
|
||||||
// add current to visited nodes
|
// add current to visited nodes
|
||||||
visited.insert(make_pair<CTopology::TTopologyId,uint>(startTopo, father));
|
visited.insert(std::pair<CTopology::TTopologyId, uint>(startTopo, father));
|
||||||
heap.push(0.0f, father);
|
heap.push(0.0f, father);
|
||||||
|
|
||||||
bool found=false;
|
bool found=false;
|
||||||
|
@ -1699,7 +1699,7 @@ bool CWorldMap::findAStarPath(const CTopology::TTopologyId &start, const CTopolo
|
||||||
|
|
||||||
// add node to visited and to heap
|
// add node to visited and to heap
|
||||||
heap.push(heuristic, child);
|
heap.push(heuristic, child);
|
||||||
visited.insert(make_pair<CTopology::TTopologyId,uint>(next, child));
|
visited.insert(std::pair<CTopology::TTopologyId, uint>(next, child));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1767,7 +1767,7 @@ bool CWorldMap::findInsideAStarPath(CWorldPosition const& start, CWorldPosition
|
||||||
uint father = (uint)nodes.size()-1;
|
uint father = (uint)nodes.size()-1;
|
||||||
|
|
||||||
// Add start node to visited nodes (father holds start node index for the moment)
|
// Add start node to visited nodes (father holds start node index for the moment)
|
||||||
visited.insert(make_pair<CAStarNode, uint>(startNode, father));
|
visited.insert(std::pair<CAStarNode, uint>(startNode, father));
|
||||||
// Push start node in the heap with a zero cost
|
// Push start node in the heap with a zero cost
|
||||||
heap.push(0.0f, father);
|
heap.push(0.0f, father);
|
||||||
|
|
||||||
|
@ -1854,7 +1854,7 @@ bool CWorldMap::findInsideAStarPath(CWorldPosition const& start, CWorldPosition
|
||||||
// Add node to heap with a computed f(n)=g(n)+h(n)
|
// Add node to heap with a computed f(n)=g(n)+h(n)
|
||||||
heap.push(distance + heuristic, child);
|
heap.push(distance + heuristic, child);
|
||||||
// Add node to visited
|
// Add node to visited
|
||||||
visited.insert(make_pair<CAStarNode, uint>(next, child));
|
visited.insert(std::pair<CAStarNode, uint>(next, child));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue