Visual Studio 2013 compilation support for Ryzom Server
This commit is contained in:
parent
e64791ce55
commit
ff175a18cb
5 changed files with 8 additions and 4 deletions
|
@ -92,7 +92,8 @@ private:
|
||||||
struct CHash
|
struct CHash
|
||||||
{
|
{
|
||||||
enum { bucket_size = 4, min_buckets = 8, };
|
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
|
// table to map CEntityId to TCLEntityId
|
||||||
|
|
|
@ -117,7 +117,8 @@ private:
|
||||||
struct CIdHash
|
struct CIdHash
|
||||||
{
|
{
|
||||||
enum { bucket_size = 4, min_buckets = 8, };
|
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;
|
typedef CHashMap<NLMISC::CEntityId, TClientId, CIdHash> TIdToClientMap;
|
||||||
|
|
|
@ -77,6 +77,7 @@ struct CInetAddressHashMapTraits
|
||||||
//return x.port();
|
//return x.port();
|
||||||
return x.internalIPAddress();
|
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
|
// bool operator() (const NLNET::CInetAddress &x1, const NLNET::CInetAddress &x2) const
|
||||||
// {
|
// {
|
||||||
// return classId1 < classId2;
|
// return classId1 < classId2;
|
||||||
|
|
|
@ -1862,7 +1862,7 @@ NLMISC_COMMAND( dumpImpulseStats, "Dump Impulse stat to XML log", "<logfile> [[-
|
||||||
if (reverse)
|
if (reverse)
|
||||||
comp = -comp;
|
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())
|
if (ucriterion != 0 && !result.empty())
|
||||||
|
|
|
@ -140,7 +140,8 @@ public:
|
||||||
struct CEntityIdHash
|
struct CEntityIdHash
|
||||||
{
|
{
|
||||||
enum { bucket_size = 4, min_buckets = 8, };
|
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
|
/// Container of entities (all entities are referenced by this container
|
||||||
|
|
Loading…
Reference in a new issue