Merge pull request #961 from noudess/patch-7

Fix FixZ regarding the use of model in npc_types
This commit is contained in:
Michael Cook (mackal) 2020-02-01 21:55:53 -05:00 committed by GitHub
commit b351d3718a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -771,7 +771,7 @@ void Mob::FixZ(int32 z_find_offset /*= 5*/, bool fix_client_z /*= false*/) {
float Mob::GetZOffset() const {
float offset = 3.125f;
switch (race) {
switch (GetModel()) {
case RACE_BASILISK_436:
offset = 0.577f;
break;