Include fixes from atys branch

ryzomclassic-develop
kaetemi 3 years ago
parent 4028534f2a
commit b4638c7969
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -128,12 +128,15 @@ string CAIScriptDataManager::makePdrFileName()
{
string aisName;
// get the AIS local path
CConfigFile::CVar *var = IService::getInstance()->ConfigFile.getVarPtr("AESAliasName");
if (var)
aisName = var->asString(0);
else
//CConfigFile::CVar *var = IService::getInstance()->ConfigFile.getVarPtr("AESAliasName");
// aisName must be get from getServiceAliasName to manage "-N AIS_NAME" command line arg
aisName = IService::getInstance()->getServiceAliasName();
if (aisName.empty())
aisName = "unamed_ais";
return string("ai_script_data/")+aisName+"_pdr.bin";
}

@ -592,8 +592,8 @@ void CGrpProfileDynHarvest::checkTargetsAround ()
if (!_Grp->calcCenterPos(centerPos)) // true if there's some bots in the group.
break;
const uint32 playerRadius= uint(30); // _AggroRange);
const uint32 botRadius=uint(0); // _AggroRange);
const uint32 playerRadius=30; // _AggroRange);
const uint32 botRadius=0; // _AggroRange);
const uint32 minRadius=playerRadius>botRadius?botRadius:playerRadius;

@ -870,7 +870,7 @@ void CScriptVM::interpretCode(
{
otherContext = callerContext;
}
else
else if (thisContext != NULL)
{
otherContext = thisContext->findContext(strId);
}

@ -179,7 +179,7 @@ public:
{
nlinfo("Create entity %s", id.toString().c_str());
std::pair<TEntityMap::iterator,bool> res = _Entities.insert(std::make_pair(id, CEntity()));
std::pair<TEntityMap::iterator,bool> res = _Entities.insert(std::make_pair<NLMISC::CEntityId,CEntity>(id, CEntity()));
TEntityMap::iterator ite = res.first;
nlassert(ite != _Entities.end() && res.second);

@ -145,7 +145,7 @@ CQueryParser::TParserResult CQueryParser::parseQuery(const std::string &queryStr
return pr;
}
std::shared_ptr<TQueryNode> rootNode(parseExpr(first, queryStr.end()));
CUniquePtr<TQueryNode> rootNode(parseExpr(first, queryStr.end()));
// make sure we have consumed all the stream
iterator rew = first;
@ -153,7 +153,7 @@ CQueryParser::TParserResult CQueryParser::parseQuery(const std::string &queryStr
if (tok.TokenType != tt_EOF)
throw EInvalidQuery(tok.It, "Not all the query content have been read");
pr.QueryTree = rootNode;
pr.QueryTree = CUniquePtrMove(rootNode);
return pr;
}

@ -1191,7 +1191,8 @@ public:
struct TParserResult
{
/// The query tree
mutable std::shared_ptr<TQueryNode> QueryTree;
//mutable std::shared_ptr<TQueryNode> QueryTree;
mutable CUniquePtr<TQueryNode> QueryTree;
/// Option to extract full context with selected logs
bool FullContext;
@ -1205,7 +1206,7 @@ public:
}
TParserResult(const TParserResult &other)
: QueryTree(other.QueryTree),
: QueryTree(CUniquePtrMove(other.QueryTree)),
FullContext(other.FullContext),
OutputPrefix(other.OutputPrefix)

@ -21,7 +21,7 @@
#include "nel/misc/command.h"
#include "nel/misc/path.h"
#include "npc_description_messages.h"
#include "../../server/src/ai_share/ai_share.h"
#include "../ai_share/ai_share.h"
using namespace NLMISC;
using namespace std;

@ -20,7 +20,7 @@
#define RY_STAT_DB_COMMON_H
#include "../../server/src/entities_game_service/common_pd.h"
#include "../entities_game_service/common_pd.h"
#endif // RY_STAT_DB_COMMON_H

Loading…
Cancel
Save