mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Compile bug fixes.
This commit is contained in:
@@ -66,8 +66,8 @@ class TravelNodePath
|
||||
//Constructor
|
||||
TravelNodePath(float distance = 0.1f, float extraCost = 0, uint8 pathType = (uint8)TravelNodePathType::walk, uint32 pathObject = 0, bool calculated = false,
|
||||
std::vector<uint8> maxLevelCreature = { 0, 0, 0 }, float swimDistance = 0)
|
||||
: extraCost(extraCost), distance(distance), pathType(TravelNodePathType(pathType)), calculated(calculated), pathObject(pathObject), // distance after extra cost, pathObject after calculated - whipowill
|
||||
maxLevelCreature(maxLevelCreature), swimDistance(swimDistance)
|
||||
: extraCost(extraCost), distance(distance), calculated(calculated), pathType(TravelNodePathType(pathType)), // reorder args - whipowill
|
||||
maxLevelCreature(maxLevelCreature), pathObject(pathObject), swimDistance(swimDistance) // reorder args - whipowill
|
||||
{
|
||||
if (pathType != (uint8)TravelNodePathType::walk)
|
||||
complete = true;
|
||||
|
||||
@@ -71,7 +71,7 @@ class ActionNode
|
||||
{
|
||||
public:
|
||||
ActionNode(std::string const name, NextAction** prerequisites = nullptr, NextAction** alternatives = nullptr, NextAction** continuers = nullptr) :
|
||||
name(name), action(nullptr), alternatives(alternatives), continuers(continuers), prerequisites(prerequisites) { } // reorder arguments - whipowill
|
||||
name(name), action(nullptr), continuers(continuers), alternatives(alternatives), prerequisites(prerequisites) { } // reorder arguments - whipowill
|
||||
|
||||
virtual ~ActionNode()
|
||||
{
|
||||
|
||||
@@ -111,7 +111,7 @@ class FindItemsToTradeByClassVisitor : public IterateItemsVisitor
|
||||
{
|
||||
public:
|
||||
FindItemsToTradeByClassVisitor(uint32 itemClass, uint32 itemSubClass, uint32 count)
|
||||
: IterateItemsVisitor(), count(count), itemClass(itemClass), itemSubClass(itemSubClass) { }
|
||||
: IterateItemsVisitor(), itemClass(itemClass), count(count), itemSubClass(itemSubClass) { } // reorder args - whipowill
|
||||
|
||||
bool Visit(Item* item) override
|
||||
{
|
||||
@@ -181,7 +181,7 @@ class QueryNamedItemCountVisitor : public QueryItemCountVisitor
|
||||
class FindNamedItemVisitor : public FindItemVisitor
|
||||
{
|
||||
public:
|
||||
FindNamedItemVisitor(Player* bot, std::string const name) : FindItemVisitor(), name(name) { }
|
||||
FindNamedItemVisitor([[maybe_unused]] Player* bot, std::string const name) : FindItemVisitor(), name(name) { } // unused param - whipowill
|
||||
|
||||
bool Accept(ItemTemplate const* proto) override
|
||||
{
|
||||
|
||||
@@ -39,7 +39,7 @@ class Trigger : public AiNamedObject
|
||||
class TriggerNode
|
||||
{
|
||||
public:
|
||||
TriggerNode(std::string const name, NextAction** handlers = nullptr) : trigger(nullptr), name(name), handlers(handlers) { } // reorder args - whipowill
|
||||
TriggerNode(std::string const name, NextAction** handlers = nullptr) : trigger(nullptr), handlers(handlers), name(name) { } // reorder args - whipowill
|
||||
|
||||
virtual ~TriggerNode()
|
||||
{
|
||||
|
||||
@@ -24,7 +24,7 @@ class UntypedValue : public AiNamedObject
|
||||
virtual void Reset() { }
|
||||
virtual std::string const Format() { return "?"; }
|
||||
virtual std::string const Save() { return "?"; }
|
||||
virtual bool Load(std::string const value) { return false; }
|
||||
virtual bool Load([[maybe_unused]] std::string const value) { return false; } // unused param - whipowill
|
||||
};
|
||||
|
||||
template<class T>
|
||||
|
||||
Reference in New Issue
Block a user