omit objects from ground y
This commit is contained in:
parent
8d41c4ee44
commit
29e2c18ab8
@ -2167,7 +2167,7 @@ void Spawn::InitializePosPacketData(Player* player, PacketStruct* packet, bool b
|
|||||||
else {
|
else {
|
||||||
packet->setDataByName("pos_x", appearance.pos.X);
|
packet->setDataByName("pos_x", appearance.pos.X);
|
||||||
float result_y = appearance.pos.Y;
|
float result_y = appearance.pos.Y;
|
||||||
if(!IsWidget() && !IsSign() && !(IsFlyingCreature() || IsWaterCreature() || InWater())) {
|
if(!IsWidget() && !IsSign() && !IsObject() && !(IsFlyingCreature() || IsWaterCreature() || InWater())) {
|
||||||
result_y = new_y;
|
result_y = new_y;
|
||||||
}
|
}
|
||||||
if(GetMap() != player->GetMap()) {
|
if(GetMap() != player->GetMap()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user