mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 13:41:31 +00:00
[Bug Fix] Fix Issue with SetFlyMode() (#3961)
# Notes - Variable and parameter had the same name, meaning this could fail.
This commit is contained in:
parent
62b5f8a488
commit
ef635cb257
@ -5612,9 +5612,9 @@ void Mob::SetEntityVariable(std::string variable_name, std::string variable_valu
|
|||||||
m_EntityVariables[variable_name] = variable_value;
|
m_EntityVariables[variable_name] = variable_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Mob::SetFlyMode(GravityBehavior flymode)
|
void Mob::SetFlyMode(GravityBehavior in_flymode)
|
||||||
{
|
{
|
||||||
flymode = flymode;
|
flymode = in_flymode;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Mob::Teleport(const glm::vec3 &pos)
|
void Mob::Teleport(const glm::vec3 &pos)
|
||||||
|
|||||||
@ -729,7 +729,7 @@ public:
|
|||||||
void SetSpawned() { spawned = true; };
|
void SetSpawned() { spawned = true; };
|
||||||
bool Spawned() { return spawned; };
|
bool Spawned() { return spawned; };
|
||||||
virtual bool ShouldISpawnFor(Client *c) { return true; }
|
virtual bool ShouldISpawnFor(Client *c) { return true; }
|
||||||
void SetFlyMode(GravityBehavior flymode);
|
void SetFlyMode(GravityBehavior in_flymode);
|
||||||
void Teleport(const glm::vec3 &pos);
|
void Teleport(const glm::vec3 &pos);
|
||||||
void Teleport(const glm::vec4 &pos);
|
void Teleport(const glm::vec4 &pos);
|
||||||
void TryMoveAlong(float distance, float angle, bool send = true);
|
void TryMoveAlong(float distance, float angle, bool send = true);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user