diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index 2246534f1..f3e2aa9ca 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -435,7 +435,9 @@ void Networking::processWorldPacket(RakNet::Packet *packet) { worldObject = worldEvent->objectChanges.objects[i]; - Script::Call(player->getId()); + Script::Call( + 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(player->getId()); + Script::Call( + player->getId(), + worldEvent->cell.getDescription().c_str()); } break; diff --git a/apps/openmw-mp/Script/ScriptFunctions.hpp b/apps/openmw-mp/Script/ScriptFunctions.hpp index 9355945e7..f20665726 100644 --- a/apps/openmw-mp/Script/ScriptFunctions.hpp +++ b/apps/openmw-mp/Script/ScriptFunctions.hpp @@ -117,8 +117,8 @@ public: {"OnPlayerInventoryChange", Function()}, {"OnPlayerSpellbookChange", Function()}, {"OnPlayerJournalChange", Function()}, - {"OnObjectPlace", Function()}, - {"OnObjectDelete", Function()}, + {"OnObjectPlace", Function()}, + {"OnObjectDelete", Function()}, {"OnPlayerSendMessage", Function()}, {"OnPlayerEndCharGen", Function()}, {"OnGUIAction", Function()}