[Pathing] Fix pathing z-correctness for certain models (#2430)

* [Pathing] Fix pathing z-correctness for certain models

* Update npc.cpp

* Update npc.cpp

* Update npc.cpp
This commit is contained in:
Chris Miles
2022-09-11 12:05:20 -05:00
committed by GitHub
parent 7dc9b40ee1
commit 5502ab8765
2 changed files with 33 additions and 11 deletions
+7 -1
View File
@@ -150,6 +150,12 @@ NPC::NPC(const NPCType *npc_type_data, Spawn2 *in_respawn, const glm::vec4 &posi
size = GetRaceGenderDefaultHeight(race, gender);
}
// lava dragon is a fixed size model and should always use its default
// otherwise pathing issues
if (race == RACE_LAVA_DRAGON_49) {
size = 5;
}
taunting = false;
proximity = nullptr;
copper = 0;
@@ -2649,7 +2655,7 @@ void NPC::ModifyNPCStat(const char *identifier, const char *new_value)
AI_AddNPCSpellsEffects(atoi(val.c_str()));
CalcBonuses();
return;
}
}
else if (id == "heroic_strikethrough") {
heroic_strikethrough = atoi(val.c_str());
return;