[Server] Add OnObjectScale callback, and set scale for WorldObject

coverity_scan^2
David Cernat 8 years ago
parent 0b8d0224d1
commit 5bd2fdcf66

@ -489,6 +489,10 @@ void Networking::processWorldPacket(RakNet::Packet *packet)
myPacket->Read(worldEvent);
myPacket->Send(worldEvent, true);
Script::Call<Script::CallbackIdentity("OnObjectScale")>(
player->getId(),
worldEvent->cell.getDescription().c_str());
break;
}

@ -36,6 +36,7 @@ void WorldFunctions::AddWorldObject() noexcept
worldObject.count = tempWorldObject.count;
worldObject.goldValue = tempWorldObject.goldValue;
worldObject.pos = tempWorldObject.pos;
worldObject.scale = tempWorldObject.scale;
worldEvent->objectChanges.objects.push_back(worldObject);
}

Loading…
Cancel
Save