mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Fix FixZ regarding the use of model in npc_types
This fix only impacts those that use the model field in npc_types to override race on the client. GetModel() returns model if set, otherwise race. As a refresher, the model field is there so the server can still see a mob as its base race for things like bane, while the client can use a new model. FixZ needs to know about this.
This commit is contained in:
parent
b02e87cce7
commit
ab3d65b2ea
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user