mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-22 15:16:12 +00:00
Visual Studio 2013 compilation support for Ryzom Server
--HG-- branch : develop
This commit is contained in:
parent
77d17265eb
commit
609fbbc9c3
5 changed files with 8 additions and 4 deletions
|
@ -92,7 +92,8 @@ private:
|
|||
struct CHash
|
||||
{
|
||||
enum { bucket_size = 4, min_buckets = 8, };
|
||||
size_t operator () ( const TEntityIndex& index ) const { return index.getIndex(); }
|
||||
size_t operator () (const TEntityIndex& index) const { return index.getIndex(); }
|
||||
bool operator() (const TEntityIndex& left, const TEntityIndex& right) { return left < right; }
|
||||
};
|
||||
|
||||
// table to map CEntityId to TCLEntityId
|
||||
|
|
|
@ -117,7 +117,8 @@ private:
|
|||
struct CIdHash
|
||||
{
|
||||
enum { bucket_size = 4, min_buckets = 8, };
|
||||
size_t operator () ( NLMISC::CEntityId id ) const { return (uint32)id.getShortId(); }
|
||||
size_t operator () (NLMISC::CEntityId id) const { return (uint32)id.getShortId(); }
|
||||
bool operator() (const NLMISC::CEntityId& left, const NLMISC::CEntityId& right) { return left < right; }
|
||||
};
|
||||
|
||||
typedef CHashMap<NLMISC::CEntityId, TClientId, CIdHash> TIdToClientMap;
|
||||
|
|
|
@ -77,6 +77,7 @@ struct CInetAddressHashMapTraits
|
|||
//return x.port();
|
||||
return x.internalIPAddress();
|
||||
}
|
||||
bool operator() (const NLNET::CInetAddress& left, const NLNET::CInetAddress& right) { return left < right; }
|
||||
// bool operator() (const NLNET::CInetAddress &x1, const NLNET::CInetAddress &x2) const
|
||||
// {
|
||||
// return classId1 < classId2;
|
||||
|
|
|
@ -1862,7 +1862,7 @@ NLMISC_COMMAND( dumpImpulseStats, "Dump Impulse stat to XML log", "<logfile> [[-
|
|||
if (reverse)
|
||||
comp = -comp;
|
||||
|
||||
result.push_back(std::make_pair<float, CClientHost*>(comp, client));
|
||||
result.push_back(std::pair<float, CClientHost*>(comp, client));
|
||||
}
|
||||
|
||||
if (ucriterion != 0 && !result.empty())
|
||||
|
|
|
@ -140,7 +140,8 @@ public:
|
|||
struct CEntityIdHash
|
||||
{
|
||||
enum { bucket_size = 4, min_buckets = 8, };
|
||||
size_t operator () ( const NLMISC::CEntityId &id ) const { return (uint32)id.getShortId(); }
|
||||
size_t operator () (const NLMISC::CEntityId &id) const { return (uint32)id.getShortId(); }
|
||||
size_t operator () (const NLMISC::CEntityId &left, const NLMISC::CEntityId &right) const { return left < right; }
|
||||
};
|
||||
|
||||
/// Container of entities (all entities are referenced by this container
|
||||
|
|
Loading…
Reference in a new issue