mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-26 09:06:19 +00:00
Fixed: Servers compilation under Linux
--HG-- branch : develop
This commit is contained in:
parent
03ad7b63d4
commit
43195f71a5
5 changed files with 10 additions and 9 deletions
|
@ -84,7 +84,7 @@ uint ImpactSchemes [6][3] = { { 0, 1, 2 }, { 0, 2, 1 }, { 1, 0, 2 }, { 1, 2, 0 }
|
|||
// Observed impact on E (/10): 6 3 1 1 3 10
|
||||
// Note: if modifying this schemes, please change FORAGE_SOURCE_IMPACT_MODE in phrase_en.txt.
|
||||
uint SpecialNewbieImpactSchemeD = 10;
|
||||
uint16 LowDangerMappings [2] = { SpecialNewbieImpactSchemeD+1, SpecialNewbieImpactSchemeD+4 };
|
||||
uint16 LowDangerMappings [2] = { (uint16)SpecialNewbieImpactSchemeD+1, (uint16)SpecialNewbieImpactSchemeD+4 };
|
||||
|
||||
sint8 ExplosionResetPeriod = 50; // 5 s
|
||||
|
||||
|
|
|
@ -61,11 +61,11 @@ extern CMissionLog MissionLog;
|
|||
#define MISDBG if ( !VerboseMissions ){} else MISLOG
|
||||
|
||||
// Syntax error logged to egs_mission.log
|
||||
#define MISLOGSYNTAXERROR(_PHRASE_) MISLOG("sline:%u SYNTAX ERROR %s : "_PHRASE_, line, script[0].c_str());
|
||||
#define MISLOGSYNTAXERROR1(_PHRASE_,_PARAM_) MISLOG("sline:%u SYNTAX ERROR %s : "_PHRASE_, line, script[0].c_str(), _PARAM_);
|
||||
#define MISLOGERROR(_PHRASE_) MISLOG("sline:%u ERROR %s : "_PHRASE_, line, script[0].c_str());
|
||||
#define MISLOGERROR1(_PHRASE_,_PARAM_) MISLOG("sline:%u ERROR %s : "_PHRASE_, line, script[0].c_str(), _PARAM_);
|
||||
#define MISLOGERROR2(_PHRASE_,_PARAM1_,_PARAM2_) MISLOG("sline:%u ERROR %s : "_PHRASE_, line, script[0].c_str(), _PARAM1_, _PARAM2_);
|
||||
#define MISLOGSYNTAXERROR(_PHRASE_) MISLOG("sline:%u SYNTAX ERROR %s : " _PHRASE_, line, script[0].c_str());
|
||||
#define MISLOGSYNTAXERROR1(_PHRASE_, _PARAM_) MISLOG("sline:%u SYNTAX ERROR %s : " _PHRASE_, line, script[0].c_str(), _PARAM_);
|
||||
#define MISLOGERROR(_PHRASE_) MISLOG("sline:%u ERROR %s : " _PHRASE_, line, script[0].c_str());
|
||||
#define MISLOGERROR1(_PHRASE_, _PARAM_) MISLOG("sline:%u ERROR %s : " _PHRASE_, line, script[0].c_str(), _PARAM_);
|
||||
#define MISLOGERROR2(_PHRASE_, _PARAM1_, _PARAM2_) MISLOG("sline:%u ERROR %s : " _PHRASE_, line, script[0].c_str(), _PARAM1_, _PARAM2_);
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -80,6 +80,7 @@ void CAdminProperties::updateCSRJournal( CCharacter * user, CMission * mission,u
|
|||
|
||||
CMission* CAdminProperties::getMission(uint indexInJournal) const
|
||||
{
|
||||
/*
|
||||
if (!_Data) return NULL;
|
||||
|
||||
CCharacter *user = PlayerManager.getChar(_Data->MissionUser);
|
||||
|
@ -90,7 +91,7 @@ CMission* CAdminProperties::getMission(uint indexInJournal) const
|
|||
if (indexInJournal < user->getMissions().size())
|
||||
return (CMission*)user->getMissions()[indexInJournal];
|
||||
|
||||
/*
|
||||
|
||||
indexInJournal -= MaxSoloMissionCount;
|
||||
CTeam * team = TeamManager.getTeam( user->getTeamId() );
|
||||
if (team)
|
||||
|
|
|
@ -145,7 +145,7 @@ CQueryParser::TParserResult CQueryParser::parseQuery(const std::string &queryStr
|
|||
return pr;
|
||||
}
|
||||
|
||||
CUniquePtr<TQueryNode> rootNode(parseExpr(first, queryStr.end()));
|
||||
std::shared_ptr<TQueryNode> rootNode(parseExpr(first, queryStr.end()));
|
||||
|
||||
// make sure we have consumed all the stream
|
||||
iterator rew = first;
|
||||
|
|
|
@ -1190,7 +1190,7 @@ public:
|
|||
struct TParserResult
|
||||
{
|
||||
/// The query tree
|
||||
mutable CUniquePtr<TQueryNode> QueryTree;
|
||||
mutable std::shared_ptr<TQueryNode> QueryTree;
|
||||
|
||||
/// Option to extract full context with selected logs
|
||||
bool FullContext;
|
||||
|
|
Loading…
Reference in a new issue