From 96bd21a7ca9feb105a9e94bc524ce5d8236cdfe4 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Thu, 26 Jan 2017 14:18:47 +0200 Subject: [PATCH] [Server] Rename OnPlayerCellLoad to OnPlayerCellState, add action param --- apps/openmw-mp/Networking.cpp | 2 +- apps/openmw-mp/Script/ScriptFunctions.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index 3031ac5e1..0dc44e08d 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -176,7 +176,7 @@ void Networking::processPlayerPacket(RakNet::Packet *packet) LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received ID_PLAYER_CELL_STATE from %s", player->npc.mName.c_str()); - Script::Call(player->getId()); + Script::Call(player->getId(), player->cellStateChanges.action); break; } diff --git a/apps/openmw-mp/Script/ScriptFunctions.hpp b/apps/openmw-mp/Script/ScriptFunctions.hpp index 2e726ecfd..45732877e 100644 --- a/apps/openmw-mp/Script/ScriptFunctions.hpp +++ b/apps/openmw-mp/Script/ScriptFunctions.hpp @@ -107,7 +107,7 @@ public: {"OnPlayerDeath", Function()}, {"OnPlayerResurrect", Function()}, {"OnPlayerCellChange", Function()}, - {"OnPlayerCellLoad", Function()}, + {"OnPlayerCellState", Function()}, {"OnPlayerAttributesChange", Function()}, {"OnPlayerSkillsChange", Function()}, {"OnPlayerLevelChange", Function()},