(RoF2) Fixed dropping items on the ground so they go to ground level instead of camera height.

Show Helm Option should be functional again.
This commit is contained in:
Trevius
2014-12-27 15:46:30 -06:00
parent b63dbd50a8
commit 05c943779d
4 changed files with 22 additions and 49 deletions
+9 -1
View File
@@ -118,7 +118,15 @@ Object::Object(Client* client, const ItemInst* inst)
m_data.heading = client->GetHeading();
m_data.x = client->GetX();
m_data.y = client->GetY();
m_data.z = client->GetZ();
if (client->GetClientVersion() >= EQClientRoF2)
{
// RoF2 places items at player's Z, which is 0.625 of their height.
m_data.z = client->GetZ() - (client->GetSize() * 0.625f);
}
else
{
m_data.z = client->GetZ();
}
m_data.zone_id = zone->GetZoneID();
decay_timer.Start();