[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:
Paul Coene
2022-07-02 14:49:45 -04:00
committed by GitHub
parent 15113f4056
commit 3936b2b882
5 changed files with 13 additions and 4 deletions
+1 -1
View File
@@ -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;
}