[Server] On second thought, keep cell description as argument to them

coverity_scan^2
David Cernat 8 years ago
parent 5989bbd97e
commit b549da996e

@ -435,7 +435,9 @@ void Networking::processWorldPacket(RakNet::Packet *packet)
{
worldObject = worldEvent->objectChanges.objects[i];
Script::Call<Script::CallbackIdentity("OnObjectPlace")>(player->getId());
Script::Call<Script::CallbackIdentity("OnObjectPlace")>(
player->getId(),
worldEvent->cell.getDescription().c_str());
}
break;
@ -455,7 +457,9 @@ void Networking::processWorldPacket(RakNet::Packet *packet)
{
worldObject = worldEvent->objectChanges.objects[i];
Script::Call<Script::CallbackIdentity("OnObjectDelete")>(player->getId());
Script::Call<Script::CallbackIdentity("OnObjectDelete")>(
player->getId(),
worldEvent->cell.getDescription().c_str());
}
break;

@ -117,8 +117,8 @@ public:
{"OnPlayerInventoryChange", Function<void, unsigned short>()},
{"OnPlayerSpellbookChange", Function<void, unsigned short, int>()},
{"OnPlayerJournalChange", Function<void, unsigned short>()},
{"OnObjectPlace", Function<void, unsigned short>()},
{"OnObjectDelete", Function<void, unsigned short>()},
{"OnObjectPlace", Function<void, unsigned short, const char*>()},
{"OnObjectDelete", Function<void, unsigned short, const char*>()},
{"OnPlayerSendMessage", Function<bool, unsigned short, const char*>()},
{"OnPlayerEndCharGen", Function<void, unsigned short>()},
{"OnGUIAction", Function<void, unsigned short, int, const char*>()}

Loading…
Cancel
Save