mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-24 01:48:44 +00:00
parent
ec30735198
commit
769d5190c5
6 changed files with 19 additions and 3 deletions
|
@ -17,6 +17,7 @@
|
|||
|
||||
|
||||
#include "stdpch.h"
|
||||
#include <functional>
|
||||
#include "fg_prospection_phrase.h"
|
||||
#include "nel/misc/common.h"
|
||||
#include "nel/misc/fast_floor.h"
|
||||
|
|
|
@ -8028,7 +8028,7 @@ void CCharacter::setStartStatistics( const CCreateCharMsg& createCharMsg )
|
|||
}
|
||||
|
||||
// create character start skills, skill point and money
|
||||
string s = CreateCharacterStartSkillsValue;
|
||||
string s = CreateCharacterStartSkillsValue.get();
|
||||
if( s.size() > 0 )
|
||||
{
|
||||
CSString skillValue = s;
|
||||
|
|
|
@ -48,6 +48,15 @@ class CDBStringUpdater : public NLMISC::CSingleton<CDBStringUpdater>
|
|||
{
|
||||
return ClientDB == other.ClientDB && Node == other.Node;
|
||||
}
|
||||
|
||||
bool operator <(const TBDStringLeaf &other) const
|
||||
{
|
||||
if (ClientDB != other.ClientDB)
|
||||
return ClientDB < other.ClientDB;
|
||||
if (Node != other.Node)
|
||||
return Node < other.Node;
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
// hasher for the identifier
|
||||
|
@ -58,6 +67,10 @@ class CDBStringUpdater : public NLMISC::CSingleton<CDBStringUpdater>
|
|||
{
|
||||
return ((size_t)stringLeaf.ClientDB>>4) ^ ((size_t)stringLeaf.Node>>4);
|
||||
}
|
||||
bool operator()(const TBDStringLeaf &left, const TBDStringLeaf &right) const
|
||||
{
|
||||
return left < right;
|
||||
}
|
||||
};
|
||||
|
||||
// info for each string leaf
|
||||
|
|
|
@ -52,6 +52,7 @@ struct CServiceIdHash
|
|||
{
|
||||
enum { bucket_size = 4, min_buckets = 8, };
|
||||
size_t operator () ( const NLNET::TServiceId &sid ) const { return sid.get(); }
|
||||
bool operator()(const NLNET::TServiceId &left, const NLNET::TServiceId &right) const { return left < right; }
|
||||
};
|
||||
|
||||
class CCharIdReplaced
|
||||
|
|
|
@ -44,7 +44,8 @@ public:
|
|||
struct CUint32Hash
|
||||
{
|
||||
enum { bucket_size = 4, min_buckets = 8, };
|
||||
size_t operator () ( const uint32 &i ) const { return i; }
|
||||
size_t operator () (const uint32 &i) const { return i; }
|
||||
bool operator()(const uint32 left, const uint32 right) const { return left < right; }
|
||||
};
|
||||
|
||||
typedef uint32 TUserId;
|
||||
|
|
|
@ -785,7 +785,7 @@ NLNET::CMessage& CDbManager::addTask(const std::string& msg, ITaskEventListener*
|
|||
|
||||
// add listener to task listeners
|
||||
if (listener != NULL)
|
||||
_TaskListeners[id] = std::make_pair<ITaskEventListener*, void*>(listener, arg);
|
||||
_TaskListeners[id] = std::pair<ITaskEventListener*, void*>(listener, arg);
|
||||
|
||||
return *msgrbs;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue