Add default size function

This commit is contained in:
Michael Cook (mackal)
2018-03-20 14:35:52 -04:00
parent dbdad80960
commit 4ee35d7e56
3 changed files with 121 additions and 0 deletions
+3
View File
@@ -135,6 +135,9 @@ NPC::NPC(const NPCType* d, Spawn2* in_respawn, const glm::vec4& position, int if
respawn2 = in_respawn;
swarm_timer.Disable();
if (size < 0.0f)
size = GetRaceGenderDefaultHeight(race, gender);
taunting = false;
proximity = nullptr;
copper = 0;