Visual Studio 2013 compilation support for Ryzom Tools

This commit is contained in:
kaetemi 2015-02-23 12:28:13 +01:00
parent 8a2f4ea737
commit 068b7bf77a
2 changed files with 7 additions and 7 deletions

View file

@ -100,7 +100,7 @@ I16x16Layer *I16x16Layer::compress(I16x16Layer *layer, sint32 blank)
map<sint32, uint>::iterator it = count.find(val);
if (it == count.end())
count.insert(make_pair<sint32, uint>(val, 1));
count.insert(std::pair<sint32, uint>(val, 1));
else
++((*it).second);
}

View file

@ -1469,7 +1469,7 @@ bool CWorldMap::findAStarPath(CWorldPosition const& start, CWorldPosition const&
uint father = (uint)nodes.size()-1;
// 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
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)
heap.push(distance + heuristic, child);
// 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;
// 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);
bool found=false;
@ -1699,7 +1699,7 @@ bool CWorldMap::findAStarPath(const CTopology::TTopologyId &start, const CTopolo
// add node to visited and to heap
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;
// 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
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)
heap.push(distance + heuristic, child);
// Add node to visited
visited.insert(make_pair<CAStarNode, uint>(next, child));
visited.insert(std::pair<CAStarNode, uint>(next, child));
}
}