mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
[Fix] Boats should never get FixZ'd (#2246)
* Boats should never get FixZ'd * Use member variable to avoid repetitive checks * Resolve comments from review * Fix return type
This commit is contained in:
+1
-1
@@ -236,7 +236,7 @@ NPC::NPC(const NPCType *npc_type_data, Spawn2 *in_respawn, const glm::vec4 &posi
|
||||
if (npc_type_data->flymode >= 0) {
|
||||
flymode = static_cast<GravityBehavior>(npc_type_data->flymode);
|
||||
}
|
||||
else if (IsBoat()) {
|
||||
else if (GetIsBoat()) {
|
||||
flymode = GravityBehavior::Floating;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user