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:
@@ -346,7 +346,7 @@ inline ByteBuffer& operator<<(ByteBuffer& b, WorldPosition& guidP)
|
||||
return b;
|
||||
}
|
||||
|
||||
inline ByteBuffer& operator>>(ByteBuffer& b) // additional argument "WorldPosition& g" was unused - whipowill
|
||||
inline ByteBuffer& operator>>(ByteBuffer& b, [[maybe_unused]] WorldPosition& g) // unused param - whipowill
|
||||
{
|
||||
uint32 mapid;
|
||||
float coord_x;
|
||||
|
||||
@@ -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), prerequisites(prerequisites), continuers(continuers) { } // action after name, prereq after alternatives - whipowill
|
||||
name(name), action(nullptr), alternatives(alternatives), continuers(continuers), prerequisites(prerequisites) { } // reorder arguments - whipowill
|
||||
|
||||
virtual ~ActionNode()
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ class Multiplier : public AiNamedObject
|
||||
Multiplier(PlayerbotAI* botAI, std::string const name) : AiNamedObject(botAI, name) {}
|
||||
virtual ~Multiplier() { }
|
||||
|
||||
virtual float GetValue(Action* action) { return 1.0f; }
|
||||
virtual float GetValue([[maybe_unused]] Action* action) { return 1.0f; } // unused param - whipowill
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -39,7 +39,7 @@ class Trigger : public AiNamedObject
|
||||
class TriggerNode
|
||||
{
|
||||
public:
|
||||
TriggerNode(std::string const name, NextAction** handlers = nullptr) : name(name), trigger(nullptr), handlers(handlers) { } // name after handlers, handlers after trigger - whipowill
|
||||
TriggerNode(std::string const name, NextAction** handlers = nullptr) : trigger(nullptr), name(name), handlers(handlers) { } // reorder args - whipowill
|
||||
|
||||
virtual ~TriggerNode()
|
||||
{
|
||||
|
||||
@@ -135,7 +135,7 @@ class MemoryCalculatedValue : public CalculatedValue<T>
|
||||
return true;
|
||||
}
|
||||
|
||||
void Set(T value) override
|
||||
void Set([[maybe_unused]] T value) override // unused param - whipowill
|
||||
{
|
||||
CalculatedValue<T>::Set(this->value);
|
||||
UpdateChange();
|
||||
|
||||
Reference in New Issue
Block a user