mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-21 10:11:30 +00:00
Fix bad object Z data automatically using Z calcs, works fairly reliably
This commit is contained in:
parent
206761d5e8
commit
d8b9c3e3de
@ -266,6 +266,14 @@ bool Zone::LoadZoneObjects()
|
|||||||
data.tilt_y = atof(row[18]);
|
data.tilt_y = atof(row[18]);
|
||||||
data.unknown084 = 0;
|
data.unknown084 = 0;
|
||||||
|
|
||||||
|
|
||||||
|
glm::vec3 position;
|
||||||
|
position.x = data.x;
|
||||||
|
position.y = data.y;
|
||||||
|
position.z = data.z;
|
||||||
|
|
||||||
|
data.z = zone->zonemap->FindBestZ(position, nullptr);
|
||||||
|
|
||||||
EQEmu::ItemInstance *inst = nullptr;
|
EQEmu::ItemInstance *inst = nullptr;
|
||||||
// FatherNitwit: this dosent seem to work...
|
// FatherNitwit: this dosent seem to work...
|
||||||
// tradeskill containers do not have an itemid of 0... at least what I am seeing
|
// tradeskill containers do not have an itemid of 0... at least what I am seeing
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user